Syntax Highlighting
Highlight source code in dozens of languages and export the HTML.
Available tools
Code Syntax HighlighterHighlight source code in 25+ languages with auto-detection and export standalone HTML with inline or embedded styles.JavaScript Syntax HighlighterHighlight JavaScript code and export it as ready-to-embed HTML with GitHub light or dark colours.Python Syntax HighlighterHighlight Python code (functions, decorators, f-strings) and copy it as styled HTML for blogs and docs.JSON Syntax HighlighterHighlight JSON with coloured keys, strings, numbers and literals, exported as embeddable HTML.HTML Syntax HighlighterHighlight HTML and XML markup (tags, attributes, entities) and export escaped, styled HTML.CSS Syntax HighlighterHighlight CSS selectors, properties and values and export them as HTML for documentation.SQL Syntax HighlighterHighlight SQL queries with coloured keywords, strings and numbers, exported as embeddable HTML.Java Syntax HighlighterHighlight Java classes, annotations and generics and export them as styled HTML snippets.C# Syntax HighlighterHighlight C# code including LINQ, attributes and string interpolation, exported as styled HTML.PHP Syntax HighlighterHighlight PHP code with variables, functions and strings coloured, exported as HTML.Bash Syntax HighlighterHighlight Bash and shell scripts (commands, variables, strings, comments) as embeddable HTML.Go Syntax HighlighterHighlight Go (Golang) source code with keywords, types and strings coloured, exported as HTML.