Skip to content

highlightLines

highlightLines(text, tokens): readonly readonly HighlightSegment[][]

Highlighted text as lines of styled runs, for renderers that draw spans.

string

readonly Readonly<EditorToken>[]

readonly readonly HighlightSegment[][]