highlight-code
Documentation / interface/highlight-code
HTML Utilities​
highlightCodeSyntax()​
function highlightCodeSyntax(node: Node): any;
Defined in: interface/highlight-code.js:11
Take a node and make it so that any code blocks are syntax highlighted.
Parameters​
Parameter | Type | Description |
---|---|---|
|
| The node to be highlighted. |
Returns​
any
An object with a destroy method to clean up the mutation observer.
Example​