summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/highlight.md
blob: 159f9160c6c64b7e38b76a4ad011de78a68a22e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: highlight
linktitle: highlight
description: Takes a string of code and language declaration and uses Chroma to return syntax-highlighted HTML.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [functions]
menu:
  docs:
    parent: "functions"
keywords: [highlighting,code blocks,syntax]
signature: ["highlight INPUT LANG OPTIONS"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
---

[`highlight` is used in Hugo's built-in `highlight` shortcode][highlight].


[highlight]: /content-management/shortcodes/#highlight