Command-line tool
cli-highlight
npm/cli-highlight
Checked 26 Oct 2026, 08:31 UTC · Still published on npm
Syntax highlighting in your terminal terminal syntax highlight color cli ansi
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 26 Oct 2026, 08:31 UTC
Install it
Windows
npm install -g cli-highlight scoop install highlight
macOS
npm install -g cli-highlight
Linux
npm install -g cli-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
- enscript
Convert text to Postscript, HTML, or RTF, with syntax highlighting - iredis
Terminal Client for Redis with AutoCompletion and Syntax Highlighting - sequin
Human-readable ANSI sequences - git-split-diffs
Syntax highlighted side-by-side diffs in your terminal - colors-cli
Terminal string styling done right 256color color colors colors-cli terminal ansi console colour cli string str style - druk
Terminal code editor with a file tree, tabs, search, git integration and syntax highlighting. - chafa
Versatile and fast Unicode/ASCII/ANSI graphics renderer viewer graphics image cli images terminal processing unicode… - arf
Modern R console with syntax highlighting and fuzzy search rust r terminal console
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents