Skip to content

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): TextMarker

Parameters:

Parameter Type Description
from Position The start position.
to Position The end position.
options? Cm5TextMarkerOptions | undefined Optional marker options.

Returns: TextMarkerThe created text marker.