highlighting-kate-0.2.8.2: Syntax highlighting

Text.Highlighting.Kate.Syntax

Synopsis

Documentation

highlightAsSource

Arguments

:: String

Language syntax

-> String

Source code to highlight

-> Either String [SourceLine]

Either error message or result

Highlight source code using a specified syntax definition.

languages :: [String]Source

List of supported languages.

languagesByExtension :: String -> [String]Source

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

languagesByFilename :: FilePath -> [String]Source

Returns a list of languages appropriate for the given filename.