| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Language.Haskell.HsColour
Description
This is a library which colourises Haskell code. It currently has six output formats:
- ANSI terminal codes
- LaTeX macros
- HTML 3.2 with font tags
- HTML 4.01 with external CSS.
- XHTML 1.0 with internal CSS.
- mIRC chat client colour codes.
Synopsis
- data Output
- data ColourPrefs = ColourPrefs {}
- hscolour :: Output -> ColourPrefs -> Bool -> Bool -> String -> Bool -> String -> String
Documentation
The supported output formats.
Constructors
| TTY | ANSI terminal codes. Equivalent to |
| TTYg TerminalType | Terminal codes appropriate for the |
| LaTeX | TeX macros |
| HTML | HTML with font tags |
| CSS | HTML with CSS. |
| ACSS | HTML with CSS and mouseover types. |
| ICSS | HTML with inline CSS. |
| MIRC | mIRC chat clients |
data ColourPrefs Source #
Colour preferences.
Constructors
| ColourPrefs | |
Instances
| Read ColourPrefs Source # | |
Defined in Language.Haskell.HsColour.Colourise Methods readsPrec :: Int -> ReadS ColourPrefs # readList :: ReadS [ColourPrefs] # readPrec :: ReadPrec ColourPrefs # readListPrec :: ReadPrec [ColourPrefs] # | |
| Show ColourPrefs Source # | |
Defined in Language.Haskell.HsColour.Colourise Methods showsPrec :: Int -> ColourPrefs -> ShowS # show :: ColourPrefs -> String # showList :: [ColourPrefs] -> ShowS # | |
| Eq ColourPrefs Source # | |
Defined in Language.Haskell.HsColour.Colourise | |
Arguments
| :: Output | Output format. |
| -> ColourPrefs | Colour preferences (for formats that support them). |
| -> Bool | Whether to include anchors. |
| -> Bool | Whether output document is partial or complete. |
| -> String | Title for output. |
| -> 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.