foobar2000 - Mp3tag Title_formatting Lexer

All questions regarding lexer highlighting schemes are discussed here...
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by Stem75 »

OK. Changed name, shorten the sample, assigned it and it has no extensions.

I hope i made them right.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post 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.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by main Alexey »

d. for brackets and other symbols, good to use Symbol color. we have also Symbol2 color if u need it.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post 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.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post 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
Last edited by main Alexey on 03.09.2024 12:17, edited 1 time in total.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post 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.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post 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
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by Stem75 »

You mean the file OK.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post 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.
Stem75
Posts: 55
Joined: 09.01.2024 15:29

Re: foobar2000 - Mp3tag Title_formatting Lexer

Post by Stem75 »

OK fine.
Post Reply