Page 2 of 5

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 08:22
by Stem75
OK. Changed name, shorten the sample, assigned it and it has no extensions.

I hope i made them right.

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 09:52
by main Alexey
Thanks.
a. you highlight titles with SeparColor color. too bright IMO. i suggest instead the Label color. if you you need the background, the IncludeBGx / SectionBGx color.

b. in the sample, many $funcnames are not highlighted. maybe make the rule and set there Id2 or Id3 or Id4 color?

c. for Regex1 / Regex2, good to use String2 / String3 colors.

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 09:54
by main Alexey
d. for brackets and other symbols, good to use Symbol color. we have also Symbol2 color if u need it.

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 11:33
by Stem75
I had to reinstall Cudatext because my colors was messed up.

I checked it with all the default themes to be sure.

I thing everything is OK now.

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 12:15
by main Alexey
Thanks.
I made my version of *.cuda-lexmap file, do u agree it is better?
different color values are not repeated here, except 'Label' repeated 1 time.

Code: Select all

[comments]
str1=
str2=
styles_cmt=
styles_str=

[map]
Regex1=String2
Regex2=String3
Regex_num=Id4
Separator_fold=Label
Separator=Label
Comments=Comment
Escaping_char=Symbol
Query=String
Color control=Color
var=IdVar
setstyle=Id3
Functions=Id1
FunctionsMeta=Id2
Numbers=Number
Text=Id

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 12:16
by main Alexey
These lines are empty:

Code: Select all

styles_cmt=
styles_str=
So SpellChecker plugin won't check anything here. better add names of comment/string styles there, if possible.

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 13:24
by Stem75
If it is for the common good why not. I like it better yes.


You mean at the comment tab to add token names so it can spellcheck? At SynWrite?

Like this:


Styles of comments (comma separated):

Separator_fold,Comments,Escaping_char,Text

Styles of strings:

Empty


Or just add it at the file as

styles_cmt=Separator_fold,Comments,Escaping_char,Text
styles_str=empty

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 13:36
by Stem75
You mean the file OK.

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 13:59
by main Alexey
I made small correction.

Code: Select all

[comments]
str1=
str2=
styles_cmt=Comments,Separator_fold
styles_str=Text
and i am publishing the lexer now to Addons Manager of CudaText, 20 minutes.

Re: foobar2000 - Mp3tag Title_formatting Lexer

Posted: 03.09.2024 14:04
by Stem75
OK fine.