AptLynx

Command-line tool

pygments

brew/pygments

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

Generic syntax highlighter

At a glance

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

Install it

Windows

pipx install pygments

macOS

brew install pygments
pipx install pygments

Linux

pipx install pygments

Highlight file syntax and print to `stdout` (language is inferred from the file extension)

pygmentize file.py

Explicitly set the language for syntax highlighting

pygmentize -l javascript input_file

List available lexers (processors for input languages)

pygmentize -L lexers

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