ruohki 8d45a7c263 feat(02-01): add syntax highlighter module with CGA color mapping
- Create src/highlighter.rs with OnceLock-based one-time syntect initialization
- Implement init_highlighter(), syntax_set(), theme_set() accessors
- Implement syntect_color_to_cga() with Euclidean RGB-to-CGA 16-color quantization
- Implement highlight_code() returning Vec<Line<'static>> using base16-ocean.dark theme
- LinesWithNewlines iterator preserves newlines for syntect grammar correctness
- Module verified to compile cleanly (tested via temporary mod registration)
2026-02-28 22:12:53 +01:00
S
Description
No description provided
478 KiB
Languages
Rust 100%