Debian Codegraph @

docs/content/en/functions/transform/CanHighlight.md

raw
1 ---
2 title: transform.CanHighlight
3 description: Reports whether the given language is supported for syntax highlighting.
4 categories: []
5 keywords: [highlight]
6 params:
7 functions_and_methods:
8 aliases: []
9 returnType: bool
10 signatures: [transform.CanHighlight LANGUAGE]
11 ---
12
13 ```go-html-template
14 {{ transform.CanHighlight "go" }} → true
15 {{ transform.CanHighlight "klingon" }} → false
16 ```