mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-27 16:58:53 +00:00
Add the full list of Chroma lexers
This commit is contained in:
@@ -159,6 +159,11 @@ It is also possible to add syntax highlighting with GitHub flavored code fences.
|
||||
```
|
||||
````
|
||||
|
||||
## List of Chroma Highlighting Languages
|
||||
|
||||
The full list of Chroma lexers and their aliases (which is the identifier used in the `hightlight` template func or when doing highlighting in code fences):
|
||||
|
||||
{{< chroma-lexers >}}
|
||||
|
||||
## Highlight with Pygments Classic
|
||||
|
||||
|
||||
@@ -84,7 +84,6 @@
|
||||
{
|
||||
"Name": "Base Makefile",
|
||||
"Aliases": [
|
||||
"*",
|
||||
"bsdmake",
|
||||
"mak",
|
||||
"make",
|
||||
@@ -97,7 +96,6 @@
|
||||
"Name": "Bash",
|
||||
"Aliases": [
|
||||
"bash",
|
||||
"bash_*",
|
||||
"bashrc",
|
||||
"ebuild",
|
||||
"eclass",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<dl>
|
||||
{{ range .Site.Data.docs.chroma.lexers }}
|
||||
<dt>{{ .Name }}</dt>
|
||||
<dd>{{ delimit .Aliases ", " }}</dd>
|
||||
{{ end }}
|
||||
</dl>
|
||||
Reference in New Issue
Block a user