Using Themes
Select a theme for syntax highlighting and access theme colors.
Multi-Theme Mode
Tokenize once and emit styles for multiple themes via CSS variables.
Output Formats
HTML, ANSI, SVG, JSON, plain text, and raw tokens.
Transformers
Built-in transformers for notation comments, meta ranges, and visible whitespace.
Custom Transformers
Write custom transformers to modify the HTML rendering pipeline.
Style-to-Class Mode
Replace inline styles with deterministic hashed class names.
Line Decorations
Highlight, focus, and mark lines as inserted or deleted.
Custom Languages & Themes
Register custom grammars and themes, configure aliases, and detect languages.
Contrast Correction
Automatic WCAG 2.1 foreground color adjustment for syntax tokens.
Performance & Concurrency
Pool sizing, compilation cache, per-line safety valves, and regex interruption.