-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | ConTeXt formatter for skylighting syntax highlighting -- library -- -- This module allows tokens produced by skylighting-core to be rendered -- as ConTeXt commands. @package skylighting-format-context @version 0.1 module Skylighting.Format.ConTeXt -- | Formats tokens as ConTeXt using custom commands inside a -- type{}. A KeywordTok is rendered using -- \KeywordTok{..}, and so on. formatConTeXtInline :: FormatOptions -> [SourceLine] -> Text -- | Format tokens as a ConTeXt highlighting typing environment. -- The highlighting environemnt is defined by the macros -- produced by styleToConTeXt; it is a typing environment -- with default escaping enabled, i.e., / is the escape -- character. formatConTeXtBlock :: FormatOptions -> [SourceLine] -> Text -- | Converts a Style to a set of ConTeXt command definitions, which -- should be placed in the document's preamble. styleToConTeXt :: Style -> Text