Tags and Properties for Check-in f84ad487f5
- branch=highlight propagates to descendants
- ci-pass=268d915cbfde0aad7b20989a652b9b29 added by [352453999d] on 2026-11-19 23:19:50
- sym-highlight propagates to descendants
- sym-trunk cancelled
Context
|
2026-11-19
| ||
| 23:19 | • Edit [f84ad487f5]: Add "ci-pass" with value "268d915cbfde0aad7b20989a652b9b29". artifact: 352453999d user: quarry | |
| 23:12 |
TUI: a syntax highlighter for code blocks
src/tui/highlight.c colours fenced code with ANSI SGR using Pi's token classes and its dark and light theme colours: C and C++, shell, Python, JavaScript and TypeScript, JSON, Go, Rust, diff, Markdown, YAML and SQL, with a generic fallback. Linear, safe on arbitrary bytes (a random input test under ASan), every styled span closed before each newline so lines wrap on their own. Not wired into the renderer yet. check-in: f84ad487f5 user: dmestas tags: highlight | |