docs: Document GitHub flavoured code fences Fixes #1259 - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit effaf6c2c97c90619f12293f8c474e2738d6d2f6
(DIR) parent e35a69216e7212890febdd201c1929f1a01b5916
(HTM) Author: Robert Basic <robertbasic.com@gmail.com>
Date: Mon, 28 Mar 2016 10:21:46 +0200
docs: Document GitHub flavoured code fences
Fixes #1259
Diffstat:
M docs/content/extras/highlighting.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/docs/content/extras/highlighting.md b/docs/content/extras/highlighting.md
@@ -86,6 +86,22 @@ Supported keywords: `style`, `encoding`, `noclasses`, `hl_lines`, `linenos`. No
The keywords are the same you would using with Pygments from the command line, see the [Pygments doc](http://pygments.org/docs/) for more info.
+### Code fences
+
+It is also possible to add syntax highlighting with GitHub flavoured code fences. To enable this, set the `PygmentsCodeFences` to `true` in Hugo's configuration file.
+
+````
+``` html
+<section id="main">
+ <div>
+ <h1 id="title">{{ .Title }}</h1>
+ {{ range .Data.Pages }}
+ {{ .Render "summary"}}
+ {{ end }}
+ </div>
+</section>
+```
+````
### Disclaimers