This is the most high-level function in Prism’s API. It queries all the elements that have a .language-xxxx class and then calls Prism#highlightElement on each one of them.
.language-xxxx
The following hooks will be run:
before-highlightall
before-all-elements-highlight
Optional
This is the most high-level function in Prism’s API. It queries all the elements that have a
.language-xxxxclass and then calls Prism#highlightElement on each one of them.The following hooks will be run:
before-highlightallbefore-all-elements-highlight