mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-10-17 15:15:53 -04:00
790 B
790 B
title | linktitle | description | godocref | date | publishdate | lastmod | categories | tags | signature | workson | hugoversion | relatedfuncs | deprecated | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
highlight | 2017-02-01 | 2017-02-01 | 2017-02-01 |
|
false |
highlight
takes a string of code and a language and then uses Pygments to return the syntax highlighted code in HTML.
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.