Skip to content

highlightAllUnder

Unofficial

Highlights all code elements under a given container.

Import:

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

Signature:

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

Parameters:

Parameter Type Description
container ParentNode The parent node to search within.
async? boolean Whether to use web workers for highlighting.
callback? HighlightCallback Callback invoked after each element is highlighted.

Returns: void