highlighting-kate

Overview

highlighting-kate is a Haskell library for syntax highlighting source code. Currently, the following languages are supported:

Ada, Asp, Awk, Bash, Bibtex, C, Cmake, Coldfusion, Commonlisp, Cpp, Css, D, Djangotemplate, Doxygen, Dtd, Eiffel, Erlang, Fortran, Haskell, Html, Java, Javadoc, Javascript, Json, Latex, Lex, LiterateHaskell, Lua, Makefile, Matlab, Mediawiki, Modula3, Nasm, Objectivec, Ocaml, Pascal, Perl, Php, Postscript, Prolog, Python, Rhtml, Ruby, Scala, Scheme, Sgml, Sql, SqlMysql, SqlPostgresql, Tcl Texinfo, Xml, Xslt, Yacc

The modules for parsing these languages are automatically generated from Kate syntax highlighting descriptions.

Releases

For the latest release, see HackageDB.

Documentation

Repository

darcs get http://johnmacfarlane.net/repos/highlighting-kate

Examples

LanguageNumbersCSSHighlighted Code
HaskellyesDefaultHighlight.hs
Haskellyescustom.cssHighlight.cust.hs
Objective Camlnohk-espresso.cssqueens.ml
Bashyeshk-kate.csshtml2markdown.sh
Pythonnohk-pyg.cssmerge.py
Rhtmlyeshk-espresso.cssarchive.html.erb
Cnohk-kate.csspprint.c
CppyesDefaultkwritemain.cpp
Fortranyeshk-kate.cssmergesort.f
JavayesDefaultrealloc.java
XMLyesDefaultruby.xml
Literate HaskellnoDefaultquicksort.lhs
Common LispyesDefaultreddit.lisp
Perlyeshk-kate.csssep-offprint.pl
LuayesDefaultlife.lua
JavascriptyesDefaultscriptaculous.js
EiffelyesDefaultshapes.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.

Disclaimer

This is an early, “alpha” release. It carries no warranties of any kind.