package
0.10.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.
LineNumbersInTable will, when combined with WithLineNumbers, separate the line numbers and code in table td's, which make them copy-and-paste friendly.
LinkableLineNumbers decorates the line numbers HTML elements with an "id" attribute so they can be linked.
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.
WithLineNumbers formats output with line numbers.
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.