Object
:
the default peacock theme used to highlight code
Object
:
the default peacock spans used to wrap code tokens
Object
:
the default peacock classes used to highlight code
Highlights the proviced code or throws an error if it was not able to parse it.
(String)
to highlight
(Object)
options
Name | Description |
---|---|
$0.theme (Object | String)?
(default peacock.defaultTheme )
|
to use when highlighting empty sample |
$0.linenos Boolean?
(default false )
|
if
true
line numbers will be included
|
$0.jsx Boolean?
(default true )
|
if
true
peacock will support
jsx
syntax (which makes highlighting a tad bit slower)
|
String
:
the HTML with containing the highlighted code