Code Highlighter

Turn source code into copy-ready HTML with lightweight syntax highlighting.

About Code Highlighter

Code Highlighter escapes your code into <pre><code> HTML and wraps the JavaScript keywords function, const, let, var, return, if, else, for, class and new in <span class="kw">. Style .kw in your CSS to colour keywords when embedding snippets in a blog.