Pygments Alternatives

Pygments is described as 'Generic syntax highlighter suitable for use in code hosting, forums, wikis or other applications that need to prettify source code' and is an app. There are more than 10 alternatives to Pygments for a variety of platforms, including Self-Hosted, Linux, Mac, Windows and Web-based apps. The best Pygments alternative is Pandoc, which is both free and Open Source. Other great apps like Pygments are Rich-CLI, prism.js, highlight.js and Lolight.

Copy a direct link to this comment to your clipboard
Pygments alternatives page was last updated

Alternatives list

  1. Pandoc icon
     91 likes

    Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library.

    16 Pandoc alternatives

    Cost / License

    Platforms

    • Mac
    • Windows
    • Linux
     
    |
    1
    Comments about Pandoc as an Alternative to Pygments
    Alexandre ZANNI
    Negative
    0

    They have nothing in common.

    Pandoc icon
    Pandoc icon
    • Pandoc is Free and Open SourcePygments is also Free and Open Source
  2.  2 likes

    Rich-CLI is a command line toolbox for fancy output in the terminal, built with Rich.

    Cost / License

    • Free
    • Open Source (MIT)

    Platforms

    • Mac
    • Windows
    • Linux
    • Python
     
  3. prism.js icon
     2 likes

    Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind.

    Cost / License

    • Free
    • Open Source

    Platforms

    • Online
    • Self-Hosted
     
  4. highlight.js icon
     2 likes

    Highlight.js is a client-side Syntax Highlighting library in Javascript.It can be used in Pastebin Services or in Code Examples.Because of running on client side,it needs less bandwidth than server-side Syntax Highlighting libraries.

    Cost / License

    • Free
    • Open Source

    Platforms

    • Online
    • Self-Hosted
     
  5. Lolight icon
     1 like

    Lolight is a 3kB tokenizer and syntax highlighter. No language specific syntax support, just a CSS stylable breakdown into tokens. Default styles included.

    Cost / License

    • Free
    • Open Source

    Platforms

    • Self-Hosted
     
  6. gnu source-highlight is a command line program that can be used to highlight source code, it supports output to many formats including html, ODF, ANSI and groff.

    Cost / License

    • Free
    • Open Source

    Application type

    Platforms

    • Linux
     
  7. A lightweight syntax highlighter written in JavaScript.

    Cost / License

    Platforms

    • Self-Hosted
    • JavaScript
     
  8. The MarkItDown library is a utility tool for converting various files to Markdown (e.g., for indexing, text analysis, etc.).

    Cost / License

    • Free
    • Open Source (MIT)

    Platforms

    • Mac
    • Windows
    • Linux
    • BSD
    • Python
     
  9. Rouge icon
     Like

    Rouge is a pure Ruby syntax highlighter. It can highlight over 200 different languages, and output HTML or ANSI 256-color text. Its HTML output is compatible with stylesheets designed for Pygments.

    Cost / License

    • Free
    • Open Source

    Platforms

    • Ruby
    • Self-Hosted
     
  10. Re-Highlight is a powerful syntax highlighter, which is a sub-module of the Reqable project. Re-Highlight can highlight a text by simply defining a syntax file. And Re-Highlight has built-in syntax highlighting rules for dozens of programming languages, it is easy to make your...

    Cost / License

    • Free
    • Open Source (MIT)

    Platforms

    • Self-Hosted
     
10 of 10 Pygments alternatives