Skip to content

highlightSelectionMatches

highlightSelectionMatches(caseSensitive?, minLength?, maxLength?): SelectionMatchHighlighter

Defined in: extensions/search/selection.ts:28

Extension that highlights selection matches in an editor.

boolean

Whether or not matches must have the same case. Defaults to false.

number = 1

Minimum length needed to perform a search. Defaults to 1.

number = 200

Maximum length at which to perform a search. Defaults to 200.

Lower values of minLength and higher values of maxLength can impact performance.

The CSS-selector .selection-matches span can be used to style the matches.

SelectionMatchHighlighter