Constructor
The CodeMirror editor
The current index of the selected match.
The list of matches
Whether the cursor/selection should not be modified.
Highlight the next match
Optionaloptions: IHighlightAdjacentMatchOptionsThe next match if available
Highlight the previous match
Optionaloptions: IHighlightAdjacentMatchOptionsThe previous match if available
Set the editor
Editor
Helper class to highlight texts in a code mirror editor.
Highlighted texts (aka
matches) must be provided through thematchesattributes.NOTES:
drawSelectionextension is needed.fromis set to'auto', cursor moved, orfromargument is set to'selection'or'selection-start'), or from last "current" match otherwise.currentIndexis the (readonly) source of truth for the current match.