SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: anate on August 17, 2009, 08:24:08 AM

Title: configuration - how to make it that closing bracket of a block will be highlight
Post by: anate on August 17, 2009, 08:24:08 AM
HI ,
I'm working with slick edit on a c project.
this feature used to work , but for some reason ( maybe I played with the configuration..) it's not highlighting/marking the closing bracket when the cursor is at the opening bracket.
how can I make it that closing bracket of a block will be highlighted when the cursor is placed on the opening bracket
I'd appreciate your advise
thanks
Title: Re: configuration - how to make it that closing bracket of a block will be highlight
Post by: hs2 on August 17, 2009, 12:23:53 PM
This is available at least since SE v12.0.3 thru configuration 'Paren match style' or similar incl. 'Highlight matching blocks' (e.g. #ifdef #else #endif etc.)
HS2
Title: Re: configuration - how to make it that closing bracket of a block will be highlight
Post by: joecar on March 12, 2010, 08:52:22 PM
SE 11.0.2:  paren matching highlighting worked properly.

SE 14.0.2:  paren matching highlighting works... but the background color fails to show when the paren is single-character, and shows ok when the paren is multi-character.


For example, in C/C++:

#if and #endif (multi-character symbols) are highlighted correctly (foreground and background color are both correct as setup in Options, just like I colored in this post).

{ and } (single-character symbols) are highlighted incorrectly (foreground color is ok, background colour does not show... see attached pic... the paren at the cursor has no background color).



Title: Re: configuration - how to make it that closing bracket of a block will be highlight
Post by: chrisant on March 12, 2010, 09:09:32 PM
This is because of how the current cursor line background color combines with the highlight background color (it's not an alpha blend, it's some kind of decision tree).

I too would like the bracket highlight to always override the current cursor line background color, but there doesn't seem to be a way to do that currently.

You can play around with different background colors for the current cursor line and the bracket highlight until you find a combination that works.  Or you can turn off the current cursor line coloring (you can still have the ruler, even if you disable the background coloring).