highlighting-kate-0.2.7.1: Syntax highlightingSource codeContentsIndex
Text.Highlighting.Kate.Format
Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Description
Formatters that convert a list of annotated source lines to various output formats.
Synopsis
formatAsXHtml :: [FormatOption] -> String -> [SourceLine] -> Html
data FormatOption
= OptNumberLines
| OptNumberFrom Int
| OptLineAnchors
| OptTitleAttributes
| OptDetailed
defaultHighlightingCss :: String
Documentation
formatAsXHtmlSource
:: [FormatOption]Options
-> StringLanguage
-> [SourceLine]Source lines to format
-> Html
Format a list of highlighted SourceLines as XHtml.
data FormatOption Source
Options for formatters.
Constructors
OptNumberLinesNumber lines
OptNumberFrom IntNumber of first line
OptLineAnchorsAnchors on each line number
OptTitleAttributesInclude title attributes
OptDetailedInclude detailed lexical information in classes. (By default, only the default style is included. This option causes output to be more verbose.)
defaultHighlightingCss :: StringSource
Produced by Haddock version 2.6.1