|
|
|
|
|
by hunterb123
1617 days ago
|
|
See also: Chroma (https://github.com/alecthomas/chroma) based on Pygments (https://pygments.org). JS libs like Highlight.js and Prisma.js can be ran server side and then you send the HTML/CSS like normal. Generally you'd want to pre-render blogs so syntax highlighting should be compiled HTML/CSS during the build process. CF workers and other edge computing work great if you have dynamic content if you don't want the client to use JS. For non-readonly, Monaco and Codemirror are available but heavier ofc. Anyone else know of another perf syntax highlighting lib? I like collecting tech. |
|