Luminous works on the code block level, transforming boring, hard to read source code into a rainbow of colors, improving readability and adding useful features like line numbers and line marking.
The class reads the code, adds syntax highlighting based on the defined programming language and pretty prints the code as HTML or LaTeX.
Luminous is modular in design, coming with separate parsers for each of the supported languages.
The library is also skinnable, so highlighting themes can be created and added to the core with ease.
Here are some key features of "Luminous":
Supported languages:
· ActionScript
· Ada
· Backus Naur Form
· Bash
· C#
· C/C++
· CSS
· Diff
· Diff-Pretty
· Django
· ECMAScript
· Erlang
· Go
· Groovy
· HTML
· Haskell
· JSON
· Java
· JavaScript
· LOLCODE
· LaTeX
· MATLAB
· PHP
· PHP Snippet
· Perl
· Plain
· Python
· Ruby
· Ruby on Rails
· SCSS/SASS
· SQL
· Scala
· Vim Script
· Visual Basic
· XML
What's New in This Release: [ read full changelog ]
· License change: GPL to LGPL.
· Luminous has a composer package.
· SCSS scanner.
· Changes to markup/CSS.
· Misc backwardly incompatible changes.