Expand description
UI-agnostic syntax highlighting for mathematical expressions
Structs§
- Highlighted
Span - A highlighted text span with semantic type information
Enums§
- Highlight
Type - Types of syntax highlighting
Functions§
- highlight_
expression - Parse text and return highlighted spans for syntax highlighting
- highlight_
expression_ with_ cursor - Convenience function to highlight a single line with cursor position Returns the spans and the character index where the cursor should be highlighted