Printable idea sheet
code_block_styling
reqlan rq/site/site.rq:558
Katz 0.052
Code blocks should be styled per language as a function of a classname; or by using an appropriate lightweight external dependency.
Language ids live in types.ts. CodeLanguage —. rq,. ts,. md,. py, plus st / c / json / yaml for showcases.
If using a dependency, it should parse at build, not in the browser.
- implementation
- types.ts, highlight.ts, CodeBlock.tsx, generate-highlights.mts
Interactive page: code_block_styling