enscript
« Back to VersTracker
Description:
Convert text to Postscript, HTML, or RTF, with syntax highlighting
Type: Formula  |  Latest Version: 1.6.6@1  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: text-processing postscript syntax-highlighting document-generation cli
Install: brew install enscript
About:
Enscript is a versatile command-line utility that converts plain text files into formatted PostScript, HTML, or RTF documents. It includes powerful syntax highlighting for a wide range of programming languages, making code listings more readable. The tool is highly configurable, allowing users to define custom headers, footers, and formatting rules for professional-looking output.
Key Features:
  • Multi-format output (PostScript, HTML, RTF)
  • Built-in syntax highlighting for numerous languages
  • Highly configurable headers, footers, and page layout
  • Support for virtual fonts and color handling
Use Cases:
  • Generating printable code listings from source files
  • Converting plain text logs or reports into formatted documents
  • Creating syntax-highlighted HTML pages for web publishing
Alternatives:
  • a2ps – Another powerful 'Any-to-PostScript' filter, often considered more feature-rich but also more complex.
  • pygments – A modern Python library for syntax highlighting, more flexible for integration into web applications but not a direct print-to-file tool.
License: GPL-3.0-or-later
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 14, 2025 6:54pm 1 VERSION_BUMP 19b778ee