Skip to content

highlightAll

Unofficial

Highlights all code elements on the page.

Import:

import type { highlightAll } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

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

Parameters:

ParameterTypeDescription
asyncboolean | undefinedWhether to use web workers for highlighting.
callbackHighlightCallback | undefinedCallback invoked after each element is highlighted.

Returns: void