new SyntaxHighlight(...)
Class constructor.
Methods
Links
SyntaxHighlight#tokenise
Instance Method
Tokenise string for highlighting
Returns
-
HTMLElement
- tokenised code in the form of HTML elements
Links
SyntaxHighlight.init(rootElement, options)
Static Method
Initialise syntax highlighting.
Returns
-
SyntaxHighlight | Array.<SyntaxHighlight>
- - The SyntaxHighlight instance or instances
Links