hugo/content/functions/highlight.md
Bjørn Erik Pedersen 61c27b58b3 Squashed 'docs/' changes from 1662b9d0..20959c7b
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
2017-09-25 09:02:42 +02:00

905 B

title linktitle description godocref date publishdate lastmod categories menu keywords signature workson hugoversion relatedfuncs deprecated
highlight highlight Takes a string of code and language declaration and uses Pygments to return syntax-highlighted HTML with inline-styles. 2017-02-01 2017-02-01 2017-02-01
functions
docs
parent
functions
highlighting
pygments
code blocks
syntax
highlight INPUT LANG OPTIONS
false

highlight is used in Hugo's built-in highlight shortcode.

See Installing Hugo for more information on Pygments or Syntax Highlighting for more options on how to add syntax highlighting to your code blocks with Hugo.