Constructor
The CodeMirror editor
Private
_cmPrivate
_currentPrivate
_currentPrivate
_currentPrivate
_domPrivate
_findPrivate
_highlightPrivate
_highlightPrivate
_highlightPrivate
_highlightPrivate
_matchesPrivate
_protectPrivate
_refreshPrivate
_selectThe 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
Generated using TypeDoc
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.