[Haskell-cafe] highlighting-kate - syntax highlighting library

John MacFarlane jgm at berkeley.edu
Sat Feb 2 16:42:36 EST 2008

Hello all,

I've been working on a source code syntax highlighting library. It is
now somewhat usable, and help would be welcome in testing it further, so
I'm making it publicly available:

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

Currently, the following languages are supported:

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

The parsers for individual languages are automatically generated
from Kate syntax definitions.  The xml files have been included
in the repository, together with the program that converts them to
Haskell modules.  There's also a standalone program, Highlight, that
you can use to test the highlighting. (See README for instructions.)

Bug reports and patches are welcome.  Note that I don't want to make
any manual modifications to the generated modules in
Text/Highlighting/Kate/Syntax. Changes should be made either in the
source xml files or in the program ParseSyntaxFiles.hs that generates
these modules.


More information about the Haskell-Cafe mailing list