Documentation ¶ Index ¶ func HighlightHTML(filename string, src []byte) (template.HTML, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func HighlightHTML ¶ func HighlightHTML(filename string, src []byte) (template.HTML, error) HighlightHTML returns syntax-highlighted HTML for the given source file. Highlighted tokens are wrapped in <span class="hl-{capture}"> elements. All text is HTML-escaped. Types ¶ This section is empty. Source Files ¶ View all Source files highlight.go Click to show internal directories. Click to hide internal directories.