source-highlight
« Back to VersTracker
Description:
Source-code syntax highlighter
Type: Formula  |  Latest Version: 3.1.9@0  |  Tracked Since: Oct 15, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: syntax-highlighting code-generation developer-tools documentation gnu
Install: brew install source-highlight
About:
GNU Source-highlight is a tool that generates syntax-highlighted HTML, XHTML, and other formatted outputs from source code files. It automatically detects the programming language based on file extensions and shebangs, and uses language definition files to parse and colorize code. It provides a robust solution for enhancing documentation, web pages, and logs with readable, formatted code snippets.
Key Features:
  • Supports over 150 programming and markup languages
  • Outputs to HTML, XHTML, LaTeX, DocBook, and ANSI escape sequences
  • Automatic language detection based on file extension or content
  • Customizable styles and color themes via style definition files
  • Can be used as a command-line tool or integrated via C++ library
Use Cases:
  • Generating syntax-highlighted HTML for project documentation or static websites
  • Enhancing terminal output or log files with colored code snippets
  • Converting source code to formatted LaTeX or DocBook for technical publishing
Alternatives:
  • highlight – Similar functionality with a focus on converting code to HTML and LaTeX; often considered a strong alternative with different configuration styles.
  • pygments – A Python-based library and command-line tool known for extensive language support and ease of integration into web frameworks.
Version History
Detected Version Rev Change Commit
Oct 15, 2025 5:03pm 6 VERSION_BUMP 351851fc
Sep 10, 2025 6:55pm 6 VERSION_BUMP 51312cbd
Dec 16, 2024 6:40am 6 VERSION_BUMP a3172dc8