mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 12:44:47 -04:00
Add the full list of Chroma lexers
This commit is contained in:
parent
18114d4b4a
commit
2de831f4b9
@ -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
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
6
layouts/shortcodes/chroma-lexers.html
Normal file
6
layouts/shortcodes/chroma-lexers.html
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<dl>
|
||||||
|
{{ range .Site.Data.docs.chroma.lexers }}
|
||||||
|
<dt>{{ .Name }}</dt>
|
||||||
|
<dd>{{ delimit .Aliases ", " }}</dd>
|
||||||
|
{{ end }}
|
||||||
|
</dl>
|
Loading…
x
Reference in New Issue
Block a user