hscolour-1.9: Colourise Haskell code.

Language.Haskell.HsColour.HTML

Contents

Description

Formats Haskell source code using HTML with font tags.

Synopsis

Documentation

hscolour

Arguments

:: ColourPrefs

Colour preferences.

-> Bool

Whether to include anchors.

-> Bool

Whether output should be partial.

-> String

Haskell source code.

-> String

Coloured Haskell source code.

Formats Haskell source code using HTML with font tags.

Internals

renderAnchors :: ((TokenType, String) -> String) -> Either String (TokenType, String) -> String

renderComment :: String -> String

renderNewLinesAnchors :: String -> String

escape :: [Char] -> [Char]