package lexers

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

Dependency Relation
	imports 8 packages, and imported by 2 packages


Package-Level Functions (total 8)
Aliases of all the lexers, and skip those lexers who do not have any aliases, or show their name instead
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 24)
Caddyfile lexer.
Caddyfile directive-only lexer.
Common Lisp lexer.
EmacsLisp lexer.
ERB lexer is Ruby embedded in HTML.
Fallback lexer if no other is found.
Gemtext lexer.
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 with YAML frontmatter and HTML comment support.
Markless lexer.
Raku lexer.
Restructuredtext lexer.
Svelte lexer.
Typoscript lexer.
YAML+Jinja is YAML with Jinja templating embedded. Used by Ansible playbooks and Salt SLS files.