Skip to content

PrismModule.highlightAllUnder method

PrismModule › highlightAllUnder

Unofficial

Highlights all code elements under a container.

Signature:

highlightAllUnder(container: ParentNode, async?: boolean, callback?: HighlightCallback): void

Parameters:

ParameterTypeDescription
containerParentNodeThe container element.
async?booleanWhether to use web workers.
callback?HighlightCallbackCallback invoked after each element is highlighted.

Returns: void