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