logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Highlight Syntax - Format Code with Highlight | Online Free DevTools by Hexmos

Format code syntax with Highlight. Generate HTML from source code and customize themes using the command line. Free online tool, no registration required.

highlight

Outputs syntax-highlighted source code to a variety of formats. More information: http://andre-simon.de/doku/highlight/en/highlight.php.

  • Produce a complete HTML document from a source code file:

highlight {{[-o|--out-format]}} {{html}} {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}} {{path/to/source_code}}

  • Produce an HTML fragment, suitable for inclusion in a larger document:

highlight {{[-o|--out-format]}} {{html}} {{[-f|--fragment]}} {{[-S|--syntax]}} {{language}} {{source_file}}

  • Inline the CSS styling in every tag:

highlight {{[-o|--out-format]}} {{html}} --inline-css {{[-S|--syntax]}} {{language}} {{source_file}}

  • List all supported languages, themes, or plugins:

highlight --list-scripts {{langs|themes|plugins}}

  • Print a CSS stylesheet for a theme:

highlight {{[-o|--out-format]}} {{html}} --print-style {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}} --stdout

See Also