Brackets Background Color

Working on new editor enhancements?
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Brackets Background Color

Post by nco2k »

brackets use the default background color instead of the current line color, which is kinda disturbing.

Image

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Brackets Background Color

Post by IdeasVacuum »

It's a Preferences setting (File/Preferences/Editor/Coloring). Operators can have their own colour setting.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: Brackets Background Color

Post by nco2k »

@IdeasVacuum
nco2k wrote:brackets use the default background color instead of the current line color
c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Brackets Background Color

Post by IdeasVacuum »

...yes, but you can change it :wink:

However, watchout - it might crash the IDE: http://www.purebasic.fr/english/viewtop ... 40#p347140
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Brackets Background Color

Post by Trond »

IdeasVacuum wrote:...yes, but you can change it :wink:
Not the background color.
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: Brackets Background Color

Post by nco2k »

and even if you could, the problem would remain the same. :)

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Brackets Background Color

Post by Vera »

nco2k wrote:brackets use the default background color instead of the current line color
yes - but it's only in case they're empty and the cursor is right behind it, so it's a kind of warning sign of potential missing parameters.
The moment there's an empty space behind them or when they include contents the whole expression including the brackets obtain the current line backgroundcolor.

So maybe get used to add an empty space behind them to avoid the 'warning highlight' or respectively the disturbance. :)

greetings ~ Vera
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: Brackets Background Color

Post by nco2k »

even if they are not empty, as soon as you move the cursor to the brackets and the highlighting kicks in, the default background color will be used. depending on your color scheme its more or less noticeable. i should have mentioned that in the first post, but i thought the pic was obvious enough. :?

its really funny though how people try to justify a tiny yet obvious cosmetic glitch. and i definitely wont change my coding habits. :twisted:

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Post Reply