- data Options = Options {
- optStyle :: Style
- optNumberLines :: Bool
- optStartNumber :: Int
- optAnchors :: Bool
- defaultOptions :: Options
- type Style = TokenType -> [Styling]
- data Styling
- = Bold
- | Italic
- | Underline
- | Fixed
- | Foreground Color
- | Background Color
- data Color
- colorful :: Style
- hscolour :: Style
- monochrome :: Style
- toANSI :: Options -> Tokens -> String
- toLaTeX :: Options -> Tokens -> String
- toXHtmlCSS :: Options -> Tokens -> Html
- toXHtmlInline :: Options -> Tokens -> Html
- cssFor :: Options -> String
- toHtmlCSS :: Options -> Tokens -> Html
- toHtmlInline :: Options -> Tokens -> Html
Documentation
Options | |
|
type Style = TokenType -> [Styling]Source
A Style is a generic instruction for formatting a token of the given type. The same style can be used for various output formats (HTML, ANSI, LaTeX...).
A black and white style.
toLaTeX :: Options -> Tokens -> StringSource
Highlight as LaTeX. Use with
\usepackage{fancyvrb} \usepackage[usenames,dvipsnames]{color}
toXHtmlCSS :: Options -> Tokens -> HtmlSource
Highlight as XHTML with CSS classes.
toXHtmlInline :: Options -> Tokens -> HtmlSource
Highlight as XHTML with inline styles.
toHtmlInline :: Options -> Tokens -> HtmlSource
Highlight as HTML with inline styles.