hscolour-1.9: Colourise Haskell code.

Language.Haskell.HsColour

Description

This is a library with colourises Haskell code. It currently has four output formats:

  • ANSI terminal codes
  • LaTeX macros
  • HTML with font tags
  • HTML with CSS.
  • mIRC chat client colour codes.

Synopsis

Documentation

data Output

The supported output formats.

Constructors

TTY

ANSI terminal codes

LaTeX

TeX macros

HTML

HTML with font tags

CSS

HTML with CSS.

MIRC

mIRC chat clients

Instances

Eq Output 
Show Output 

hscolour

Arguments

:: Output

Output format.

-> ColourPrefs

Colour preferences for formats that support it.

-> Bool

Whether to include anchors.

-> Bool

Whether output document is partial or complete.

-> Bool

Whether input document is literate haskell or not

-> String

Haskell source code.

-> String

Coloured Haskell source code.

Colourise Haskell source code with the given output format.