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.
This is free and open source software.
Key Features
- Supports 225 languages and counting, including Ruby, JavaScript, Swift, Go, C++, and Haskell. Our contributors are adding more languages all the time.
- Aims for the highest quality lexing in all its supported languages, even with strange features and odd corner cases.
- Rouge themes are 100% compatible with Pygments’ stylesheets. No need to remake your theme, and no need to spawn a Python process either. Rouge is made in Ruby.
Website: github.com/rouge-ruby/rouge
Support:
Developer: Jeanine Adkisson
License: MIT License
Rouge is written in Ruby. Learn Ruby with our recommended free books and free tutorials.
Related Software
| Syntax Highlighters | |
|---|---|
| Prism | Lightweight, extensible syntax highlighter, with modern web standards in mind |
| Highlight.js | JavaScript syntax highlighter with language auto-detection |
| Shiki | Themeable code rendering powered by TextMate grammars |
| Chroma | General purpose syntax highlighter |
| Rouge | Pure Ruby syntax highlighter |
| Pygments | Generic syntax highlighter |
| starry-night | GitHub-style code colouring for JavaScript projects |
| Highlight | Transforms source code into polished, readable output |
| Re-Highlight | Powerful syntax highlighter |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.