Skip to content

zenzike/kate-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Kate Haskell Syntax

This code provides syntax highlighting for Haskell files in Kate. Here are some features:

  • Operators are supported (++, !, >>=, and any other combination of legal operator characters)
  • Special symbols are recognised (=>, <-, ->, ::, ..)
  • Unicode support for →, ←, ∷, ‥,⇒, ∀, ∃
  • Support for qualified module functions (List.sort, etc)
  • Support for qualified module types
  • Support for literate code (using > and \begin{code} \end{code})
  • Support for literate specifications (using < and \begin{spec} \end{spec})

You can see some examples of its use at zenzike.com.

Installation

To install these files simply copy the xml files into the kate configuration directory:

git clone git://github.com/zenzike/kate-haskell.git
cd kate-haskell
cp haskell.xml ~/.kde/share/apps/katepart/syntax/
cp literate-haskell.xml ~/.kde/share/apps/katepart/syntax/

Testing

These files should be tested against the Kate language DTD before pushing upstream:

xmllint --noout --dtdvalid language.dtd haskell.xml literate-haskell.xml

About

Kate syntax files for Haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published