highlighting-kate is a Haskell library for syntax highlighting source code. Currently, the following languages are supported:
Actionscript, Ada, Apache, Asn1, Asp, Awk, Bash, Bibtex, Boo, C, Changelog, Clojure, Cmake, Coffeescript, Coldfusion, Commonlisp, Cpp, Cs, Css, D, Diff, Djangotemplate, Doxygen, Dtd, Eiffel, Email, Erlang, Fortran, Fsharp, Gnuassembler, Go, Haskell, Haxe, Html, Ilerpg, Ini, Java, Javadoc, Javascript, Json, Jsp, Latex, Lex, LiterateHaskell, Lua, Makefile, Mandoc, Matlab, Maxima, Mediawiki, Metafont, Mips, Modula2, Modula3, Monobasic, Nasm, Noweb, Objectivec, Objectivecpp, Ocaml, Octave, Pascal, Perl, Php, Pike, Postscript, Prolog, Python, R, Relaxngcompact, Rhtml, Ruby, Scala, Scheme, Sci, Sed, Sgml, Sql, SqlMysql, SqlPostgresql, Tcl, Texinfo, Verilog, Vhdl, Xml, Xorg, Xslt, Xul, Yacc, Yaml.
The modules for parsing these languages are automatically generated from Kate syntax highlighting descriptions.
For the latest release, see HackageDB.
https://github.com/jgm/highlighting-kate
git clone git://github.com/jgm/highlighting-kate.git
| Language | Numbers | Style | Highlighted Code |
|---|---|---|---|
| Haskell | yes | haddock | Highlight.hs |
| Objective Caml | no | espresso | queens.ml |
| Bash | yes | kate | html2markdown.sh |
| Python | no | tango | merge.py |
| Rhtml | yes | espresso | archive.html.erb |
| C | no | monochrome | pprint.c |
| Cpp | yes | pygments | kwritemain.cpp |
| Fortran | yes | kate | mergesort.f |
| Java | yes | pygments | realloc.java |
| XML | yes | pygments | ruby.xml |
| Literate Haskell | no | haddock | quicksort.lhs |
| Common Lisp | yes | pygments | reddit.lisp |
| Perl | yes | kate | sep-offprint.pl |
| Lua | yes | pygments | life.lua |
| Javascript | yes | pygments | scriptaculous.js |
| Eiffel | yes | pygments | shapes.e |
All of these examples use HTML title tags to make class information available. Just move the mouse over an expression to see how it is marked up. This feature is available as an option, but is not turned on by default.
This is an early, “alpha” release. It carries no warranties of any kind.