Skip to content

PrismModule.highlightElement method

PrismModule › highlightElement

Unofficial

Highlights a single element.

Signature:

highlightElement(element: Element, async?: boolean | undefined, callback?: HighlightCallback | undefined): void

Parameters:

Parameter Type Description
element Element The element to highlight.
async? boolean | undefined Whether to use web workers.
callback? HighlightCallback | undefined Callback invoked after the element is highlighted.

Returns: void