mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 18:18:37 +00:00
Add syntax highlighting gallery links for Chroma
Thanks to @xyproto for https://github.com/xyproto/splash (the Chroma syntax highlighting galleries repo), and to @bradryanbice for bringing this to our attention in https://github.com/gohugoio/hugoDocs/pull/478.
This commit is contained in:
1 parent
f91d9da47f
commit
b6170774b1
1 file changed
+7
-1
@@ -72,7 +72,13 @@ pygmentsCodefences
|
|||||||
: Set to true to enable syntax highlighting in code fences with a language tag in markdown (see below for an example).
|
: Set to true to enable syntax highlighting in code fences with a language tag in markdown (see below for an example).
|
||||||
|
|
||||||
pygmentsStyle
|
pygmentsStyle
|
||||||
: The style of code highlighting. See https://help.farbox.com/pygments.html for a gallery. Note that this option is not relevant when `pygmentsUseClasses` is set.
|
: The style of code highlighting. Note that this option is not
|
||||||
|
relevant when `pygmentsUseClasses` is set.
|
||||||
|
|
||||||
|
Syntax highlighting galleries:
|
||||||
|
**Chroma** ([short snippets](https://xyproto.github.io/splash/docs/all.html),
|
||||||
|
[long snippets](https://xyproto.github.io/splash/docs/longer/all.html)),
|
||||||
|
[Pygments](https://help.farbox.com/pygments.html)
|
||||||
|
|
||||||
pygmentsUseClasses
|
pygmentsUseClasses
|
||||||
: Set to `true` to use CSS classes to format your highlighted code. See [Generate Syntax Highlighter CSS](#generate-syntax-highlighter-css).
|
: Set to `true` to use CSS classes to format your highlighted code. See [Generate Syntax Highlighter CSS](#generate-syntax-highlighter-css).
|
||||||
|
|||||||
Reference in new issue
Block a user