WordHighlighter
Defined in: extensions/search/selection.ts:13
Extends
Section titled “Extends”WordHighlighter(
editor
,options
):any
Defined in: extensions/search/selection.ts:13
Parameters
Section titled “Parameters”editor
Section titled “editor”PrismEditor
<{ }>
options
Section titled “options”Returns
Section titled “Returns”any
Properties
Section titled “Properties”
optional
api:SearchAPI
Defined in: extensions/search/selection.ts:10
Search API used by the extension. Can be used get the position of the matches for example. This property is only present after the extension is added to an editor.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”setFilter()
Section titled “setFilter()”setFilter(
newFilter
):void
Defined in: extensions/search/selection.ts:15
Sets the search filter used. Useful for updating the filter after changing an editor’s language.
Parameters
Section titled “Parameters”newFilter
Section titled “newFilter”Returns
Section titled “Returns”void