package lexers
Import Path
github.com/alecthomas/chroma/v2/lexers (on go.dev)
Dependency Relation
imports 7 packages, and imported by 2 packages
Involved Source Files
caddyfile.go
cl.go
dns.go
emacs.go
genshi.go
go.go
haxe.go
html.go
http.go
lexers.go
markdown.go
mysql.go
php.go
raku.go
rst.go
svelte.go
typoscript.go
zed.go
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.
![]() |
The pages are generated with Golds v0.8.2. (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. |