struct HighlightSpan
Swift
struct HighlightSpan
A styled character range within one line.
Sources/LavaText/Highlighting.swift:27
Constructors
init(range: Range<Int>, styleIndex: Int)
Creates a span.
Sources/LavaText/Highlighting.swift:34
Properties
var range: Range<Int>
The styled characters, as character offsets within the line.
Sources/LavaText/Highlighting.swift:29
var styleIndex: Int
Which palette entry colours the range.
Sources/LavaText/Highlighting.swift:31