package lexers

Import Path
	github.com/alecthomas/chroma/v2/lexers (on go.dev)

Dependency Relation
	imports 7 packages, and imported by 2 packages


Package-Level Functions (total 7)
Analyse text content and return the "best" lexer..
Get a Lexer by name, alias or file extension. Note that this if there isn't an exact match on name or alias, this will call Match(), so it is not efficient.
Match returns the first lexer matching filename. Note that this iterates over all file patterns in all lexers, so it's not particularly efficient.
MatchMimeType attempts to find a lexer for the given MIME type.
Names of all lexers, optionally including aliases.
PlaintextRules is used for the fallback lexer as well as the explicit plaintext lexer.
Register a Lexer with the global registry.
Package-Level Variables (total 20)
Caddyfile lexer.
Caddyfile directive-only lexer.
Common Lisp lexer.
EmacsLisp lexer.
Fallback lexer if no other is found.
Genshi lexer.
Html+Genshi lexer.
Genshi Text lexer.
GlobalLexerRegistry is the global LexerRegistry of Lexers.
Go lexer.
Haxe lexer.
HTML lexer.
HTTP lexer.
Markdown lexer.
Raku lexer.
Restructuredtext lexer.
Svelte lexer.
Typoscript lexer.