import { highlightElement } from "https://deno.land/x/frugal@0.5.0/docs/dep/prism.ts";
Highlights the code inside a single element.
The following hooks will be run:
before-sanity-check
before-highlight
- All hooks of Prism.highlightElement. These hooks will only be run by the current worker if
async
istrue
. before-insert
after-highlight
complete
Parameters
The element containing the code.
It must have a class of language-xxxx
to be processed, where xxxx
is a valid language identifier.
optional
callback: HighlightCallback