Page 1 of 2

Settings - theme - syntax (borders)

Posted: 10.09.2024 19:46
by Stem75
I don't know if it is a bug or the default setting.

In settings - theme - syntax

I can't setup the borders of the
( IncludeBG1-2-3-4, SectionBG1-2-3-4 and LightBG1-2-3-4-5 )
because when i enter "Border" : "0,0,0,1"
all 4 of them are enabled or all disabled with 0.

And the highlight occurrences plugin gives only this options.

Re: Settings - theme - syntax (borders)

Posted: 11.09.2024 06:12
by main Alexey
IncludeBG1 can allow setting borders (each 4 of borders) BUT ONLY if you change in the dialog "Lexer style":

>>Style type: Colors, styles

It is the first combobox in the dialog.
I changed it and HiOccur plugin now uses this IncludeBG1, and matches are highlighted with border as I set bottom border in IncludeBG1.

Re: Settings - theme - syntax (borders)

Posted: 11.09.2024 08:17
by Stem75
So this doesn't apply when i open an .ini file which uses
Cudatext\data\lexliblite\Ini files.cuda-litelexer

with my default syntax theme.

I made the changes that you have post with borders 0,0,0,1 and it doesn't work.

Re: Settings - theme - syntax (borders)

Posted: 11.09.2024 10:53
by main Alexey
I did not understand what you wrote. please elaborate.
(what color element in INI files do you want to change?)

Re: Settings - theme - syntax (borders)

Posted: 11.09.2024 11:49
by Stem75
In Options - (settings - plugins) - highlight occurrences - config

I am setting:

theme_item_current = BrcketBG (default) IncludeBG1 (user)
theme_item_other = BrcketBG (default) IncludeBG2 (user)

Then

in Cudatext\data\themes\My_default.cuda-theme-syntax

I am editing IncludeBG1 - IncludeBG2

"Lex_IncludeBG1" : {
"Type" : 3,
"Styles" : "",
"CFont" : "",
"CBack" : "",
"CBorder" : "#FF0000",
"Border" : "0,0,0,1"
},
"Lex_IncludeBG2" : {
"Type" : 3,
"Styles" : "",
"CFont" : "",
"CBack" : "",
"CBorder" : "#00FF00",
"Border" : "0,0,0,1"
},

I have changed also "Type" 3 with 2 and also done it the way you showed me in your post.

Then

I open an .ini file with INI files default lexer.

Then within the .ini file contents

When i select a word it highlights with either all borders showing up (both the word i select and all occurrences with "Border" : "0,0,0,1") or no borders showing up (both the word i select and all occurrences with "Border" : "0,0,0,0")

I hope i have explain it well.

Re: Settings - theme - syntax (borders)

Posted: 11.09.2024 12:33
by main Alexey
I see now. reason of wrong border highlight: you did now change the field in the dialog:

>>Style type: Colors, styles

As i see, it corresponds to the line
"Type": 1,
because I have now in file themes/my.cuda-theme-syntax

"Lex_IncludeBG1": {
"Type": 1,
"Styles": "",
"CFont": "#000000",
"CBack": "#C0DCC0",
"CBorder": "#0000FF",
"Border": "0,0,0,1"
},

Re: Settings - theme - syntax (borders)

Posted: 11.09.2024 13:56
by Stem75
If i understand it right you are telling me to replace IncludeBG1 with

"Lex_": {
"Type": 1,
"Styles": "",
"CFont": "#000000",
"CBack": "#C0DCC0",
"CBorder": "#0000FF",
"Border": "0,0,0,1"
},

and i did

Also ui_lexer_theme = true tried with false too

Enable lexer themes = true tried with false too


But in all cases it shows all the 4 borders.

I also changed the theme to ebony but again it shows all the 4 borders.

Re: Settings - theme - syntax (borders)

Posted: 11.09.2024 15:15
by main Alexey
Can you send me your settings-folder in zip? support(at)uvviewsoft.com or attach it here (remove private info from history*).

and data-folder too!

Re: Settings - theme - syntax (borders)

Posted: 11.09.2024 17:32
by Stem75
I have send them.

Re: Settings - theme - syntax (borders)

Posted: 11.09.2024 23:26
by Stem75
I think all it was needed was an update of the plugin.
It was in front of my eyes...
It is working now as you have suggested. Thanks.
P.S. Is there a way to delete the whole topic;