Artifact 5fac367f8d8db7da419d72a3579d94e21b68e89459fb7d11b4276cd15e87b70d:
- File
src/tui/highlight.h
-
2026-11-19 23:12:08
— part of check-in
[f84ad487f5]
on branch highlight
— 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. (user: dmestas, size: 1901) [annotate] [blame] [check-ins using]
- 2026-11-20 02:48:53 — part of check-in [157b7d7187] on branch trunk — CI green on 5dbfd58fbab4 (user: dmestas, size: 1901) [annotate] [blame] [check-ins using]
- 2026-11-20 11:36:34 — part of check-in [06c5df2a07] on branch tui-round-3 — Merge trunk into tui-round-3: vendored libfossil a88df0d; Fil-C build lists keep bash.c and the Gemini files (user: dmestas, size: 1901) [annotate] [blame] [check-ins using]
- 2026-11-20 11:49:28 — part of check-in [29a145230c] on branch tui-atfile — Merge tui-round-3: build lists keep bash.c, highlight and the new files (user: dmestas, size: 1901) [annotate] [blame] [check-ins using]
-
2026-11-19 23:12:08
— part of check-in
[f84ad487f5]
on branch highlight
— TUI: a syntax highlighter for code blocks