github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/highlight.md (about)

     1  ---
     2  title: highlight
     3  linktitle: highlight
     4  description: Takes a string of code and language declaration and uses Pygments to return syntax-highlighted HTML with inline-styles.
     5  godocref:
     6  date: 2017-02-01
     7  publishdate: 2017-02-01
     8  lastmod: 2017-02-01
     9  categories: [functions]
    10  menu:
    11    docs:
    12      parent: "functions"
    13  keywords: [highlighting,pygments,code blocks,syntax]
    14  signature: ["highlight INPUT LANG OPTIONS"]
    15  workson: []
    16  hugoversion:
    17  relatedfuncs: []
    18  deprecated: false
    19  ---
    20  
    21  [`highlight` is used in Hugo's built-in `highlight` shortcode][highlight].
    22  
    23  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.
    24  
    25  
    26  [highlight]: /content-management/shortcodes/#highlight
    27  [installpygments]: /getting-started/installing/#installing-pygments-optional
    28  [syntax]: /content-management/syntax-highlighting/