highlightElement
Unofficial
Highlights a single code element.
Import:
import type { highlightElement } from '@obsidian-typings/obsidian-public-latest';Signature:
function highlightElement(element: Element, async: boolean | undefined, callback: HighlightCallback | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
element | Element | The element to highlight. |
async | boolean | undefined | Whether to use web workers for highlighting. |
callback | HighlightCallback | undefined | Callback invoked after the element is highlighted. |
Returns: void