core icon indicating copy to clipboard operation
core copied to clipboard

Text editor widget syntax highlighting lacks support for NASM assembly language

Open ddkwork opened this issue 1 year ago • 5 comments

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

ddkwork avatar Mar 02 '24 05:03 ddkwork

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"`
}

ddkwork avatar Mar 02 '24 05:03 ddkwork

a4913292a4af15ca6f52c9c0f77bf407

ddkwork avatar Mar 02 '24 07:03 ddkwork

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.

kkoreilly avatar Mar 02 '24 07:03 kkoreilly

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: @.***>

ddkwork avatar Mar 02 '24 07:03 ddkwork

e183cf12b5248203a2f3f3015a3f4c6d Comparing the fleet and goland color schemes, I still like the goland because it's eye friendly and I find that my eyes are a little afraid of very bright light right now. Also, green won't work, green is always ridiculed in China

ddkwork avatar Mar 02 '24 07:03 ddkwork

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.

kkoreilly avatar Apr 27 '24 16:04 kkoreilly