@jsvision/code-editor / searchDocument
Function: searchDocument()
searchDocument(
snapshot,query,options?): readonlyDocumentSearchMatch[]
Defined in: code-editor/src/document/search.ts:30
Finds literal matches without mutating document or history state.
Parameters
snapshot
query
string
options?
Returns
readonly DocumentSearchMatch[]
Example
ts
const matches = searchDocument(snapshot, 'value');