Versions in this module Expand all Collapse all v3 v3.1.1 Jun 28, 2024 Changes in this version + func StyleEntryToCSS(e chroma.StyleEntry) string + type Formatter struct + Classes bool + func New(options ...Option) *Formatter + func (f *Formatter) Format(w io.Writer, style *chroma.Style, iterator chroma.Iterator) (err error) + func (f *Formatter) WriteCSS(w io.Writer, style *chroma.Style) error + type Option func(f *Formatter) + func BaseLineNumber(n int) Option + func ClassPrefix(prefix string) Option + func HighlightLines(ranges [][2]int) Option + func InlineCode(b bool) Option + func LineNumbersInTable(b bool) Option + func PreventSurroundingPre(b bool) Option + func Standalone(b bool) Option + func TabWidth(width int) Option + func WithAllClasses(b bool) Option + func WithClasses(b bool) Option + func WithCustomCSS(css map[chroma.TokenType]string) Option + func WithLineNumbers(b bool) Option + func WithLinkableLineNumbers(b bool, prefix string) Option + func WithPreWrapper(wrapper PreWrapper) Option + func WrapLongLines(b bool) Option + type PreWrapper interface + End func(code bool) string + Start func(code bool, styleAttr string) string Other modules containing this package gitee.com/pidanpidan/chroma