Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Settings ¶
type Settings struct {
Foreground string `json:"foreground,omitempty"`
FontStyle string `json:"fontStyle,omitempty"`
}
Settings 代码高亮设置
type Theme ¶
type Theme struct {
Schema string `json:"$schema,omitempty"`
Colors map[string]string `json:"colors,omitempty"`
TokenColors []*TokenColor `json:"tokenColors,omitempty"`
}
Theme 主题
func (*Theme) GetTokenColorsHex ¶
GetTokenColorsHex 获取全部代码颜色
type TokenColor ¶
type TokenColor struct {
Scope interface{} `json:"scope,omitempty"`
Settings Settings `json:"settings,omitempty"`
}
TokenColor 代码高亮配色方案
func (*TokenColor) GetScope ¶
func (tc *TokenColor) GetScope() []string
GetScope 获取 TokenColor Scope 的确切内容
func (*TokenColor) HasScope ¶
func (tc *TokenColor) HasScope(scope string) bool
HasScope 是否存在某个 Scope
Click to show internal directories.
Click to hide internal directories.