Constructor
The CodeMirror editor
Private
_cmPrivate
_currentPrivate
_currentPrivate
_currentPrivate
_domPrivate
_highlightPrivate
_highlightPrivate
_highlightPrivate
_matchesPrivate
_protectThe current index of the selected match.
The list of matches
Whether the cursor/selection should not be modified.
Private
_findPrivate
_highlightPrivate
_refreshPrivate
_selectHighlight 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.