Text editor widget syntax highlighting lacks support for NASM assembly language
Describe the feature
Text editor widget syntax highlighting lacks support for NASM assembly language, https://github.com/alecthomas/chroma has support inside, I tried to customize the highlighting color using a structure, but the structure is too big and laggy
Relevant code
No response
Details
type Emacs struct {
Background struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"Background"`
Comment struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"Comment"`
CommentPreproc struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"CommentPreproc"`
CommentSpecial struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"CommentSpecial"`
Error struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"Error"`
Keyword struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"Keyword"`
KeywordPseudo struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"KeywordPseudo"`
KeywordType struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"KeywordType"`
LitNum struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"LitNum"`
LitStr struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"LitStr"`
LitStrBacktick struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"LitStrBacktick"`
LitStrDoc struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"LitStrDoc"`
LitStrEscape struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"LitStrEscape"`
LitStrInterpol struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"LitStrInterpol"`
LitStrOther struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"LitStrOther"`
LitStrRegex struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"LitStrRegex"`
LitStrSymbol struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"LitStrSymbol"`
NameAttribute struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameAttribute"`
NameBuiltin struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameBuiltin"`
NameConstant struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameConstant"`
NameDecorator struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameDecorator"`
NameEntity struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameEntity"`
NameException struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameException"`
NameFunction struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameFunction"`
NameLabel struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameLabel"`
NameScope struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameScope"`
NameTag struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameTag"`
NameType struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameType"`
NameVar struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"NameVar"`
Operator struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"Operator"`
OperatorWord struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"OperatorWord"`
TextStyleDeleted struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleDeleted"`
TextStyleEmph struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleEmph"`
TextStyleError struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleError"`
TextStyleHeading struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleHeading"`
TextStyleInserted struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleInserted"`
TextStyleOutput struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleOutput"`
TextStylePrompt struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStylePrompt"`
TextStyleStrong struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleStrong"`
TextStyleSubheading struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleSubheading"`
TextStyleTraceback struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleTraceback"`
TextStyleUnderline struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextStyleUnderline"`
TextWhitespace struct {
Color struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Color"`
Background struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Background"`
Border struct {
R int `json:"R"`
G int `json:"G"`
B int `json:"B"`
A int `json:"A"`
} `json:"Border"`
Bold string `json:"Bold"`
Italic string `json:"Italic"`
Underline string `json:"Underline"`
NoInherit bool `json:"NoInherit"`
} `json:"TextWhitespace"`
}
You should not have to manually write a syntax highlighter if chroma supports it. I will work on improving support for text editor custom syntax highlighting soon.
Thanks!
---Original--- From: @.> Date: Sat, Mar 2, 2024 15:24 PM To: @.>; Cc: @.@.>; Subject: Re: [cogentcore/core] Text editor widget syntax highlighting lackssupport for NASM assembly language (Issue #925)
You should not have to manually write a syntax highlighter if chroma supports it. I will work on improving support for text editor custom syntax highlighting soon.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
You can use the texteditor.Buffer.SetLang function to customize the highlighting language now; see the text editor documentation in the views section on the Cogent Core Website.