formatters

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTMLMinified = formatters.Register("html-min", NewHTMLMinifiedFormatter())
)
View Source
var (
	JSONMinified = formatters.Register("json-min", NewJSONMinifiedFormatter())
)
View Source
var (
	SVGMinified = formatters.Register("svg-min", NewSVGMinifiedFormatter())
)

Functions

func Get

func Get(name string) (chroma.Formatter, bool)

func List

func List() []string

Types

type HTMLMinifiedFormatter

type HTMLMinifiedFormatter struct {
	// contains filtered or unexported fields
}

func NewHTMLMinifiedFormatter

func NewHTMLMinifiedFormatter() *HTMLMinifiedFormatter

func (*HTMLMinifiedFormatter) Format

func (f *HTMLMinifiedFormatter) Format(w io.Writer, style *chroma.Style, iterator chroma.Iterator) error

type JSONMinifiedFormatter

type JSONMinifiedFormatter struct {
	// contains filtered or unexported fields
}

func NewJSONMinifiedFormatter

func NewJSONMinifiedFormatter() *JSONMinifiedFormatter

func (*JSONMinifiedFormatter) Format

func (f *JSONMinifiedFormatter) Format(w io.Writer, style *chroma.Style, iterator chroma.Iterator) error

type SVGMinifiedFormatter

type SVGMinifiedFormatter struct {
	// contains filtered or unexported fields
}

func NewSVGMinifiedFormatter

func NewSVGMinifiedFormatter() *SVGMinifiedFormatter

func (*SVGMinifiedFormatter) Format

func (f *SVGMinifiedFormatter) Format(w io.Writer, style *chroma.Style, iterator chroma.Iterator) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL