Add the full list of Chroma lexers

This commit is contained in:
Bjørn Erik Pedersen 2018-04-02 13:46:07 +02:00
parent 18114d4b4a
commit 2de831f4b9
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
3 changed files with 11 additions and 2 deletions

View File

@ -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 ## Highlight with Pygments Classic

View File

@ -84,7 +84,6 @@
{ {
"Name": "Base Makefile", "Name": "Base Makefile",
"Aliases": [ "Aliases": [
"*",
"bsdmake", "bsdmake",
"mak", "mak",
"make", "make",
@ -97,7 +96,6 @@
"Name": "Bash", "Name": "Bash",
"Aliases": [ "Aliases": [
"bash", "bash",
"bash_*",
"bashrc", "bashrc",
"ebuild", "ebuild",
"eclass", "eclass",

View File

@ -0,0 +1,6 @@
<dl>
{{ range .Site.Data.docs.chroma.lexers }}
<dt>{{ .Name }}</dt>
<dd>{{ delimit .Aliases ", " }}</dd>
{{ end }}
</dl>