skylighting-0.14: syntax highlighting library

Safe Haskell | Safe-Inferred
Language | Haskell2010

Skylighting

Synopsis

- lookupSyntax :: Text -> SyntaxMap -> Maybe Syntax
- syntaxByName :: SyntaxMap -> Text -> Maybe Syntax
- syntaxByShortName :: SyntaxMap -> Text -> Maybe Syntax
- syntaxesByExtension :: SyntaxMap -> String -> [Syntax]
- syntaxesByFilename :: SyntaxMap -> String -> [Syntax]
- module Skylighting.Syntax
- module Skylighting.Types
- module Skylighting.Tokenizer
- module Skylighting.Parser
- module Skylighting.Regex
- module Skylighting.Styles
- module Skylighting.Format.ANSI
- module Skylighting.Format.ConTeXt
- module Skylighting.Format.HTML
- module Skylighting.Format.LaTeX
- module Skylighting.Loader

# Documentation

lookupSyntax :: Text -> SyntaxMap -> Maybe Syntax #

Lookup syntax by (in order) full name (case insensitive), short name (case insensitive), extension.

syntaxByName :: SyntaxMap -> Text -> Maybe Syntax #

Lookup a syntax by full name (case insensitive).

syntaxByShortName :: SyntaxMap -> Text -> Maybe Syntax #

Lookup a syntax by short name (case insensitive).

syntaxesByExtension :: SyntaxMap -> String -> [Syntax] #

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

syntaxesByFilename :: SyntaxMap -> String -> [Syntax] #

Returns a list of syntaxes appropriate for the given filename.

module Skylighting.Syntax

module Skylighting.Types

module Skylighting.Tokenizer

module Skylighting.Parser

module Skylighting.Regex

module Skylighting.Styles

module Skylighting.Format.ANSI

module Skylighting.Format.ConTeXt

module Skylighting.Format.HTML

module Skylighting.Format.LaTeX

module Skylighting.Loader