- highlightAs :: String -> String -> Either String [SourceLine]
- languages :: [String]
- languagesByExtension :: String -> [String]
- languagesByFilename :: FilePath -> [String]
Documentation
:: String | Language syntax |
-> String | Source code to highlight |
-> Either String [SourceLine] | Either error message or result |
Highlight source code using a specified syntax definition.
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.