AptLynx

Command-line tool

chroma

brew/chroma

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

General purpose syntax highlighter in pure Go accessibility color 颜色 无障碍 color-blindness 色盲

At a glance

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

Install it

Windows

winget install --id Ubisoft.Chroma -e
scoop install chroma

macOS

brew install chroma

Linux

brew install chroma

Highlight source code from a file with the Python lexer and output to `stdout`

chroma -l python path/to/source_file.py

Highlight source code from a file with the Go lexer and output to an HTML file

chroma -l go -f html path/to/source_file.go > path/to/target_file.html

Highlight source code from `stdin` with the C++ lexer and output to an SVG file, using the Monokai style

command | chroma -l c++ -f svg -s monokai > path/to/target_file.svg

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