Expand description
Headless syntax highlighting, styling tokens, and interval splitting.
Structs§
- Concealed
Line - A rendered visual line where concealed syntax tokens have been collapsed, maintaining exact bidirectional mapping to source buffer byte offsets.
- Display
Pad - Display-only padding spliced into a
ConcealedLine’s display text. - Rgba
- An 8-bit per channel RGBA color representation.
- Style
Span - A styled region of text on a single line.
- Styled
Segment - A contiguous segment of text on a line with its resolved style and selection status.
- Text
Style - Direct styling attributes for a span of text.
Enums§
- Highlight
Tag - Semantic categorization for syntax tokens.
- Style
Value - The style applied to a token, either via a semantic tag or direct visual attributes.
- Underline
Decoration - Visual style for underlined text.
Traits§
- Syntax
Highlighter - Trait implemented by language tokenizers and syntax highlighters.
Functions§
- display_
width - Display-column width of
sfor monospace alignment. - split_
line_ intervals - Computes disjoint, sorted styled segments for a line by splitting across syntax span and selection boundaries.