Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Style ¶
type Style struct {
Name string `json:"name"`
Entries map[string]StyleEntry `json:"style"`
}
Style is a chroma style
func LoadStyle ¶
LoadStyle loads a Style from an io.Reader
func (*Style) Chroma ¶
Chroma converts a Style to a chroma.Style
type StyleEntry ¶
type StyleEntry struct {
Color string `json:"color"`
Background string `json:"background"`
Border string `json:"border"`
Accents []string `json:"accent"`
}
StyleEntry is a mapping for a chroma style
func (StyleEntry) String ¶
func (s StyleEntry) String() string
String returns a chroma-representable style entry
Source Files
¶
- chromajson.go
- mapping.go
Click to show internal directories.
Click to hide internal directories.