summaryrefslogtreecommitdiffstats
path: root/docs/content/en/content-management/syntax-highlighting.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/content-management/syntax-highlighting.md')
-rw-r--r--docs/content/en/content-management/syntax-highlighting.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/content/en/content-management/syntax-highlighting.md b/docs/content/en/content-management/syntax-highlighting.md
index 8ff270c54..5195b8211 100644
--- a/docs/content/en/content-management/syntax-highlighting.md
+++ b/docs/content/en/content-management/syntax-highlighting.md
@@ -80,6 +80,20 @@ func GetTitleFunc(style string) func(s string) string {
}
{{< / highlight >}}
+## Highlight Hugo/GO Template Code
+
+For highlighting Hugo/GO template code on your page, add `/*` after the opening double curly braces and `*/` before closing curly braces.
+
+``` go
+{{</*/* myshortcode */*/>}}
+```
+
+Gives this:
+
+``` go
+{{</* myshortcode */>}}
+```
+
## Highlight Template Func
See [Highlight](/functions/highlight/).