package
2.15.0
Repository: https://github.com/alecthomas/chroma.git
Documentation: pkg.go.dev

# Functions

BaseLineNumber sets the initial number to start line numbering at.
ClassPrefix sets the CSS class prefix.
HighlightLines higlights the given line ranges with the Highlight style.
InlineCode creates inline code wrapped in a code tag.
LineNumbersInTable will, when combined with WithLineNumbers, separate the line numbers and code in table td's, which make them copy-and-paste friendly.
New HTML formatter.
PreventSurroundingPre prevents the surrounding pre tags around the generated code.
Standalone configures the HTML formatter for generating a standalone HTML document.
StyleEntryToCSS converts a chroma.StyleEntry to CSS attributes.
TabWidth sets the number of characters for a tab.
WithAllClasses disables an optimisation that omits redundant CSS classes.
WithClasses emits HTML using CSS classes, rather than inline styles.
WithCustomCSS sets user's custom CSS styles.
WithLineNumbers formats output with line numbers.
WithLinkableLineNumbers decorates the line numbers HTML elements with an "id" attribute so they can be linked.
WithPreWrapper allows control of the surrounding pre tags.
WrapLongLines wraps long lines.

# Structs

Formatter that generates HTML.

# Interfaces

PreWrapper defines the operations supported in WithPreWrapper.

# Type aliases

Option sets an option of the HTML formatter.