Node.js Syntax Highlighter
Use highlight.js with Node.js to pre-generate syntax-highlighted HTML for code snippets. Note: my preferences have evolved since and I now lean on Prism.js in practice, but the highlight.js workflow below is still useful.
Use highlight.js with Node.js to pre-generate syntax-highlighted HTML for code snippets. Note: my preferences have evolved since and I now lean on Prism.js in practice, but the highlight.js workflow below is still useful.