Doc.markText method
Doc › markText
Unofficial
Marks a range of text with a specific CSS class.Signature:
markText(from: Position, to: Position, options?: Cm5TextMarkerOptions | undefined): TextMarkerParameters:
| Parameter | Type | Description |
|---|---|---|
| from | Position | The start position. |
| to | Position | The end position. |
| options? | Cm5TextMarkerOptions | undefined | Optional marker options. |
Returns: TextMarker — The created text marker.