Program code

Pygments – generic syntax highlighter

Pygments is a generic syntax highlighter suitable for use in code hosting, forums, wikis or other applications that need to prettify source code.

Py of course stands for Python, while pigments are used for coloring paint, and in this case, source code.

This is free and open source software.

Key Features

  • Supports over 500 languages and text formats.
  • Fast parsing and formatting.
  • Special attention is paid to details that increase highlighting quality.
  • Support for new languages and formats are added easily; most languages use a simple regex-based lexing mechanism.
  • A number of output formats are available, among them HTML, RTF, LaTeX and ANSI sequences.
  • Usable as a command-line tool and as a library.

Website: pygments.org
Support: GitHub Code Repository
Developer: Georg Brandl
License: BSD 2-Clause “Simplified” License

Pygments is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Syntax Highlighters
PrismLightweight, extensible syntax highlighter, with modern web standards in mind
Re-HighlightPowerful syntax highlighter
ChromaGeneral purpose syntax highlighter
PygmentsGeneric syntax highlighter
RougePure Ruby syntax highlighter
Highlight.jsJavaScript syntax highlighter with language auto-detection

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments