hscolour-1.24.4: Colourise Haskell code.
Safe HaskellSafe-Inferred
LanguageHaskell98

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.

-> Int

Starting line number (for line anchors).

-> String

Haskell source code.

-> String

Coloured Haskell source code.

Formats Haskell source code using HTML with font tags.

top'n'tail :: String -> String -> String #

Internals

renderAnchors :: (a -> String) -> Either String a -> String #

renderComment :: String -> String #

renderNewLinesAnchors :: Int -> String -> String #

escape :: String -> String #