Portability | portable |
---|---|
Stability | alpha |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Formatters that convert a list of annotated source lines to various output formats.
- formatAsXHtml :: [FormatOption] -> String -> [SourceLine] -> Html
- data FormatOption
- defaultHighlightingCss :: String
Documentation
:: [FormatOption] | Options |
-> String | Language |
-> [SourceLine] | Source lines to format |
-> Html |
Format a list of highlighted SourceLine
s as XHtml.
data FormatOption Source
Options for formatters.
OptNumberLines | Number lines |
OptNumberFrom Int | Number of first line |
OptLineAnchors | Anchors on each line number |
OptTitleAttributes | Include title attributes |