Skip to content

Commit

Permalink
Add syntax highlighting variables to list of all settings
Browse files Browse the repository at this point in the history
The list of all configuration variables was missing some (newer?)
variables relating to syntax highlighting.

Some instances of `pygmentsCodeFences` used different captilisation,
and have been updated to match.
  • Loading branch information
nchlswhttkr authored and bep committed Oct 16, 2019
1 parent 5561791 commit 96a8653
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/content-management/syntax-highlighting.md
Expand Up @@ -68,7 +68,7 @@ To make the transition from Pygments to Chroma seamless, they share a common set
pygmentsOptions
: A comma separated list of options. See below for a full list.

pygmentsCodefences
pygmentsCodeFences
: Set to true to enable syntax highlighting in code fences with a language tag in markdown (see below for an example).

pygmentsStyle
Expand All @@ -83,7 +83,7 @@ pygmentsStyle
pygmentsUseClasses
: Set to `true` to use CSS classes to format your highlighted code. See [Generate Syntax Highlighter CSS](#generate-syntax-highlighter-css).

pygmentsCodefencesGuessSyntax
pygmentsCodeFencesGuessSyntax
: Set to `true` to try to do syntax highlighting on code fenced blocks in markdown without a language tag.

pygmentsUseClassic
Expand Down
9 changes: 9 additions & 0 deletions content/en/getting-started/configuration.md
Expand Up @@ -214,6 +214,12 @@ pluralizeListTitles (true)
publishDir ("public")
: The directory to where Hugo will write the final static site (the HTML files etc.).

pygmentsOptions ("")
: A comma separated list of options for syntax highlighting. See the [Syntax Highlighting Options](/content-management/syntax-highlighting/#options) for the full list of available options.

pygmentsCodeFences (false)
: Enables syntax highlighting in [code fences with a language tag](/content-management/syntax-highlighting/#highlight-in-code-fences) in markdown.

pygmentsCodeFencesGuessSyntax (false)
: Enable syntax guessing for code fences without specified language.

Expand All @@ -223,6 +229,9 @@ pygmentsStyle ("monokai")
pygmentsUseClasses (false)
: Enable using external CSS for syntax highlighting.

pygmentsUseClassic (false)
: Enable using Pygments instead of the much faster Chroma for syntax highlighting.

related
: See [Related Content](/content-management/related/#configure-related-content).

Expand Down

0 comments on commit 96a8653

Please sign in to comment.