Fork me on GitHub

Supported Languages And Output Formats

Highlightable languages

The following list shows which languages Luminous supports, and which language-codes Luminous will recognise as specifying the language

NOTE: This list is generated from a recent development copy of Luminous, therefore it may occasionally contain a language which is not yet in a stable release.

ActionScript
as, actionscript
Ada
ada, adb, ads
Backus Naur Form
bnf
Bash
bash, sh
C#
cs, csharp, c#
C/C++
c, cpp, h, hpp, cxx, hxx
CSS
css
Diff
diff, patch
Diff-Pretty
prettydiff, prettypatch, diffpretty, patchpretty
Django
django, djt
ECMAScript
ecma, ecmascript
Erlang
erlang, erl, hrl
Go
go
Groovy
groovy
HTML
html, htm
Haskell
haskell, hs
JSON
json
Java
java
JavaScript
js, javascript
LOLCODE
lolcode, lolc, lol
LaTeX
latex, tex
MATLAB
m, matlab
PHP
php
PHP Snippet
php_snippet
Perl
perl, pl, pm
Plain
plain, text, txt
Python
python, py
Ruby
ruby, rb
Ruby on Rails
rails, rhtml, ror
SCSS
scss
SQL
sql, mysql
Scala
scala, scl
Vim Script
vim, vimscript
Visual Basic
vb, bas
XML
xml

Some notes on the above:

Is your language not listed here? Luminous is easy to extend and writing your own syntax highlighting rules is straightforward for many languages. See the documentation on writing a scanner.

Output formats

The following strings can be specified as an output format.
html
A HTML widget - highlighted code is wrapped in a
<div class='luminous'> ... </div>
element. Syntax elements are labelled using CSS classes and a styling theme must be included in your page.
html-full
The output is a full HTML5 document which includes embedded CSS.
html-inline
The output is the same as 'html', but it is wrapped in an inline-block element.
latex
The output is a full LaTeX document with embedded syntax highlighting.