A string with the code to be highlighted.
The name of the language definition passed to grammar.
Optionaloptions: HighlightOptionsAn object containing the tokens to use.
Usually a language definition like Prism.languages.markup.
The highlighted HTML.
Low-level function, only use if you know what you’re doing. It accepts a string of text as input and the language definitions to use, and returns a string with the HTML produced.
The following hooks will be run:
before-tokenizeafter-tokenizewrap: On each Token.