forked from vhaudiquet/rhema-together
The viewer rendered every file as plain text, so keywords, strings, and comments in Rust, TypeScript, and the rest read as one color. Replace the hand-written scanner explored for this with highlight.js, pinned to the seventeen languages the viewer can open, so the client bundle stays near 28KB gzip and unknown files still render as escaped text. The output is class names only. The .hljs-* classes map onto the --syntax-* tokens from the palette, so light and dark follow the existing media query and no color bypasses the stylesheet.