prettify.lang
Class LangHs

java.lang.Object
  extended by prettify.lang.Lang
      extended by prettify.lang.LangHs

public class LangHs
extends Lang

This is similar to the lang-hs.js in JavaScript Prettify. All comments are adapted from the JavaScript Prettify.

Registers a language handler for Haskell. To use, include prettify.js and this file in your HTML page. Then put your code in an HTML tag like

(my lisp code)
The lang-cl class identifies the language as common lisp. This file supports the following language extensions: lang-cl - Common Lisp lang-el - Emacs Lisp lang-lisp - Lisp lang-scm - Scheme I used http://www.informatik.uni-freiburg.de/~thiemann/haskell/haskell98-report-html/syntax-iso.html as the basis, but ignore the way the ncomment production nests since this makes the lexical grammar irregular. It might be possible to support ncomments using the lookbehind filter.

Author:
mikesamuel@gmail.com

Field Summary
 
Fields inherited from class prettify.lang.Lang
extendedLangs, fallthroughStylePatterns, shortcutStylePatterns
 
Constructor Summary
LangHs()
           
 
Method Summary
static java.util.List<java.lang.String> getFileExtensions()
           
 
Methods inherited from class prettify.lang.Lang
getExtendedLangs, getFallthroughStylePatterns, getShortcutStylePatterns, setExtendedLangs, setFallthroughStylePatterns, setShortcutStylePatterns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LangHs

public LangHs()
Method Detail

getFileExtensions

public static java.util.List<java.lang.String> getFileExtensions()