package lexers
Import Path
github.com/alecthomas/chroma/v2/lexers (on go.dev)
Dependency Relation
imports 8 packages, and imported by 2 packages
Involved Source Files
caddyfile.go
cl.go
dns.go
emacs.go
erb.go
gemtext.go
genshi.go
go.go
haxe.go
html.go
http.go
lexers.go
markdown.go
markless.go
mysql.go
php.go
raku.go
rst.go
svelte.go
typoscript.go
yaml_jinja.go
zed.go
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.
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |