Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SyntaxMap = map[chroma.TokenType]uint32{ chroma.Comment: 0x555753, chroma.Keyword: 0x729FCF, chroma.String: 0x8AE234, chroma.Number: 0xAD7FA8, chroma.Operator: 0xFFFFFF, chroma.NameFunction: 0xFCE94F, chroma.NameVariable: 0xEEEEEC, chroma.GenericHeading: 0x729FCF, }
SyntaxMap links Chroma token types to f4 colors
Functions ¶
Types ¶
type ChromaHighlighter ¶
type ChromaHighlighter struct {
// contains filtered or unexported fields
}
ChromaHighlighter implements vtui.Highlighter.
type ChromaProvider ¶
type ChromaProvider struct{}
ChromaProvider implements vtui.HighlighterProvider using the chroma library.
func (*ChromaProvider) Create ¶
func (p *ChromaProvider) Create(filename string, content string) vtui.Highlighter
func (*ChromaProvider) Name ¶
func (p *ChromaProvider) Name() string
Click to show internal directories.
Click to hide internal directories.