Skip to content

HighlightSegment

HighlightSegment = object

readonly start: number

UTF-16 offset of the segment in the highlighted text; unique within the text.


readonly style: Readonly<EditorTokenStyle> | null

Null where no token covers the text: it takes the theme foreground.


readonly text: string