AptLynx

Command-line tool

highlight

brew/highlight

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Convert source code to formatted text with syntax highlighting

At a glance

Type
Command-line tool
Install on
macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

macOS

brew install highlight

Linux

brew install highlight

Produce a complete HTML document from a source code file

highlight -o html -s theme_name -S language path/to/source_code

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

highlight -o html -f -S language source_file

Inline the CSS styling in every tag

highlight -o html --inline-css -S language source_file

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents