Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableThemes ¶
func AvailableThemes() []string
AvailableThemes returns a list of built-in chroma theme names.
func CSSForTheme ¶
CSSForTheme returns the CSS stylesheet for the given chroma theme name. The returned CSS targets the class-based output from the HTML formatter.
func Highlight ¶
Highlight returns HTML with CSS class annotations for the given code and language. If lang is empty or unrecognized, the code is returned HTML-escaped as plain text. Returns only the inner token spans — callers wrap in <pre>/<code> as needed.
func NormalizeLanguage ¶
NormalizeLanguage normalizes common language aliases to chroma lexer names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.