mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 00:16:45 +00:00
Fix typos in syntax-highlighting.md
This commit is contained in:
1 parent
91753ef3dd
commit
41907c4876
1 file changed
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Syntax Highlighting
|
title: Syntax Highlighting
|
||||||
description: Hugo comes with reallly fast syntax highlighting from Chroma.
|
description: Hugo comes with really fast syntax highlighting from Chroma.
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
keywords: [highlighting,pygments,chroma,code blocks,syntax]
|
keywords: [highlighting,pygments,chroma,code blocks,syntax]
|
||||||
@@ -18,7 +18,7 @@ toc: true
|
|||||||
|
|
||||||
From Hugo 0.28, the default syntax hightlighter in Hugo is [Chroma](https://github.com/alecthomas/chroma); it is built in Go and is really, really fast -- and for the most important parts compatible with Pygments.
|
From Hugo 0.28, the default syntax hightlighter in Hugo is [Chroma](https://github.com/alecthomas/chroma); it is built in Go and is really, really fast -- and for the most important parts compatible with Pygments.
|
||||||
|
|
||||||
If you want to continue to use Pygments (see below), set `pygmentsUseClassic=true` in your site config.
|
If you want to continue to use Pygments (see below), set `pygmentsUseClasses=true` in your site config.
|
||||||
|
|
||||||
The example below shows a simple code snippet from the Hugo source highlighted with the `highlight` shortcode. Note that the gohugo.io site is generated with `pygmentsUseClasses=true` (see [Generate Syntax Highlighter CSS](#generate-syntax-highlighter-css)).
|
The example below shows a simple code snippet from the Hugo source highlighted with the `highlight` shortcode. Note that the gohugo.io site is generated with `pygmentsUseClasses=true` (see [Generate Syntax Highlighter CSS](#generate-syntax-highlighter-css)).
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user