Skip to content

PrismModule.highlightElement method

PrismModule › highlightElement

Unofficial

Highlights a single element.

Signature:

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

Parameters:

ParameterTypeDescription
elementElementThe element to highlight.
async?booleanWhether to use web workers.
callback?HighlightCallbackCallback invoked after the element is highlighted.

Returns: void