Skip to content

highlightAllUnder

Unofficial

Highlights all code elements under a given container.

Import:

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

Signature:

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

Parameters:

ParameterTypeDescription
containerParentNodeThe parent node to search within.
asyncboolean | undefinedWhether to use web workers for highlighting.
callbackHighlightCallback | undefinedCallback invoked after each element is highlighted.

Returns: void