cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.31k stars 71 forks source link

Text editor widget syntax highlighting lacks support for NASM assembly language #925

Closed ddkwork closed 2 months ago

ddkwork commented 4 months ago

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 commented 4 months ago
Details

```go 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 commented 4 months ago
a4913292a4af15ca6f52c9c0f77bf407
kkoreilly commented 4 months ago

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.

ddkwork commented 4 months ago

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 commented 4 months ago
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

kkoreilly commented 2 months ago

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.