Highlights the code inside a single element.
The following hooks will be run:
before-sanity-check
before-highlight
async
true
before-insert
after-highlight
complete
Some the above hooks will be skipped if the element doesn’t contain any text or there is no grammar loaded for the element’s language.
The element containing the code. It must have a class of language-xxxx to be processed, where xxxx is a valid language identifier.
language-xxxx
xxxx
Optional
Highlights the code inside a single element.
The following hooks will be run:
before-sanity-checkbefore-highlightasyncistrue.before-insertafter-highlightcompleteSome the above hooks will be skipped if the element doesn’t contain any text or there is no grammar loaded for the element’s language.