Skip to content

highlightAll

Unofficial

Highlights all code elements on the page.

Import:

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

Signature:

function highlightAll(async?: boolean, callback?: HighlightCallback): void

Parameters:

Parameter Type Description
async? boolean Whether to use web workers for highlighting.
callback? HighlightCallback Callback invoked after each element is highlighted.

Returns: void