pandoc-1.8.2.1: Conversion between markup formats

Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>

Text.Pandoc.Highlighting

Description

Exports functions for syntax highlighting.

Synopsis

Documentation

languages :: [String]

List of supported languages.

highlightHtmlSource

Arguments

:: Bool

True if inline HTML

-> Attr

Attributes of the Code or CodeBlock

-> String

Raw contents of the Code or CodeBlock

-> Either String Html

An error or the formatted Html

languagesByExtension :: String -> [String]

Returns a list of languages appropriate for the given file extension.