Skip to content

PrismModule.highlightAllUnder method

PrismModule › highlightAllUnder

Unofficial

Highlights all code elements under a container.

Signature:

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

Parameters:

ParameterTypeDescription
containerParentNodeThe container element.
async?boolean | undefinedWhether to use web workers.
callback?HighlightCallback | undefinedCallback invoked after each element is highlighted.

Returns: void