Fallback lexer if no other is found.
var Fallback = internal.Fallback
Registry of Lexers.
var Registry = internal.Registry
func Analyse(text string) chroma.Lexer
Analyse text content and return the "best" lexer..
func Get(name string) chroma.Lexer
Get a Lexer by name, alias or file extension.
func Match(filename string) chroma.Lexer
Match returns the first lexer matching filename.
func MatchMimeType(mimeType string) chroma.Lexer
MatchMimeType attempts to find a lexer for the given MIME type.
func Names(withAliases bool) []string
Names of all lexers, optionally including aliases.
func Register(lexer chroma.Lexer) chroma.Lexer
Register a Lexer with the global registry.