Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcHeight ¶
CalcHeight calculates the image height from the number of lines of the source code, padding and access bar
Types ¶
type Formatter ¶
type Formatter interface {
Format(w io.Writer, style *chroma.Style, iterator chroma.Iterator) error
}
Formatter implements Format()
type PNGFormatter ¶
type PNGFormatter struct {
// contains filtered or unexported fields
}
PNGFormatter is a formatter for PNG
func NewPNGFormatter ¶
NewPNGFormatter generates a new PNG formatter
type Panel ¶
type Panel struct { Formatter Formatter // contains filtered or unexported fields }
Panel holds an image and formatter
Click to show internal directories.
Click to hide internal directories.