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
Optional
options: IHighlightAdjacentMatchOptionsThe next match if available
Highlight the previous match
Optional
options: 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 thematches
attributes.NOTES:
drawSelection
extension is needed.from
is set to'auto'
, cursor moved, orfrom
argument is set to'selection'
or'selection-start'
), or from last "current" match otherwise.currentIndex
is the (readonly) source of truth for the current match.