Skip to content

PrismModule.highlightAll method

PrismModule › highlightAll

Unofficial

Highlights all code elements on the page.

Signature:

highlightAll(async?: boolean | undefined, callback?: HighlightCallback | undefined): void

Parameters:

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

Returns: void