source-highlight

Install command:
brew install source-highlight

Source-code syntax highlighter

https://www.gnu.org/software/src-highlite/

License: GPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/source-highlight.json

Formula code: source-highlight.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
ventura ✅
macOS on
Intel
sonoma ✅
ventura ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 3.1.9

Revision: 6

Patches:

https://github.com/Homebrew/homebrew-core/blob/main/Patches/libtool/configure-big_sur.diff

Depends on:

boost 1.92.0 Collection of portable C++ source libraries

Binaries: check-regexp, cpp2html, java2html, source-highlight, source-highlight-esc.sh, source-highlight-settings, src-hilite-lesspipe.sh

GitHub Packages downloads:

Last 30 days21,581
Downloads635,382
Analytics install events (30 days)4,040
Downloads / install events (30 days)5.3×

Source: GitHub Packages, fetched 2026-11-11T00:52:13Z. Analytics dates: 2026-10-12 to 2026-11-11. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs4,0409,09818,748
Installs (--HEAD)001
Installs on Request4494708
Installs on Request (--HEAD)001
Build Errors0