mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
61c27b58b3
20959c7b Rewrite the syntax highlighter docs etc. 92435459 Add a note about branches REVERT: 1662b9d0 Add missing Disqus links in templates/internal.md git-subtree-dir: docs git-subtree-split: 20959c7b9124341dfc4d139748244818b9cb3641
28 lines
905 B
Markdown
28 lines
905 B
Markdown
---
|
|
title: highlight
|
|
linktitle: highlight
|
|
description: Takes a string of code and language declaration and uses Pygments to return syntax-highlighted HTML with inline-styles.
|
|
godocref:
|
|
date: 2017-02-01
|
|
publishdate: 2017-02-01
|
|
lastmod: 2017-02-01
|
|
categories: [functions]
|
|
menu:
|
|
docs:
|
|
parent: "functions"
|
|
keywords: [highlighting,pygments,code blocks,syntax]
|
|
signature: ["highlight INPUT LANG OPTIONS"]
|
|
workson: []
|
|
hugoversion:
|
|
relatedfuncs: []
|
|
deprecated: false
|
|
---
|
|
|
|
[`highlight` is used in Hugo's built-in `highlight` shortcode][highlight].
|
|
|
|
See [Installing Hugo][installpygments] for more information on Pygments or [Syntax Highlighting][syntax] for more options on how to add syntax highlighting to your code blocks with Hugo.
|
|
|
|
|
|
[highlight]: /content-management/shortcodes/#highlight
|
|
[installpygments]: /getting-started/installing/#installing-pygments-optional
|
|
[syntax]: /tools/syntax-highlighting/
|