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 ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 3.1.9

Revision: 7

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 days20,585
Downloads649,197
Analytics install events (30 days)4,044
Downloads / install events (30 days)5.1×

Source: GitHub Packages, fetched 2026-12-01T01:10:35Z. Analytics dates: 2026-11-01 to 2026-12-01. 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,04411,57420,520
Installs on Request257304903
Build Errors0