MarkdownEditView.highlightSearchMatches method
MarkdownEditView › highlightSearchMatches
Unofficial
Add highlights for specified ranges.Signature:
highlightSearchMatches(ranges: EditorRange[], style?: 'is-flashing' | 'obsidian-search-match-highlight', removePrevious?: boolean, range?: EditorSelection): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| ranges | EditorRange[] | The ranges to highlight. |
| style? | 'is-flashing' | 'obsidian-search-match-highlight' | The highlight style class. |
| removePrevious? | boolean | Whether to remove previous highlights. |
| range? | EditorSelection | The editor selection range. |
Returns: void
Remarks:
Only ranges parameter is used.