Toad World® Forums

Bracket highlighting in Editor Now highlights too many


#1

I’m using 13.1.0.16 and checked it against the production release 13.0.0.80 which works fine.

If you have a statement which uses nested brackets, the editor used to be clever enough to highlight the corresponding close bracket when you put your cursor on an open bracket (and vice versa). Now, this only works for the outermost pair of brackets; if I highlight any of the inner brackets, the outer brackets are highlighted too.

This makes it very difficult now when editing a large block of code to quickly see where bracketed portions of code start and end. I was recently editing some code and put my cursor on an open bracket up near the top as I needed to see where the close bracket was so that I could insert another inline view after it but actually there were 4 close brackets highlighted along with 3 more open brackets above my cursor.

While you could say that the close bracket I want is the 1st one I come to, it’s certainly not as easy to identify as just having the correct one highlighted and no others. I’ve looked through the settings and can’t see anything obvious so I guess someone has made a change to the way it works in the editor?

Use this simple example (obviously it won’t run): Select Trim( Nvl2( bob, To_char( x ), ‘0’ ) ) From Dual

Put your cursor on the 1st bracket and the 1st and last are highlighted. Put it on the Nvl bracket and 4 are now highlighted. Now the one on the To_Char and all 6 are highlighted! try this in 13.0.0.80 and only the pairs are highlighted.

Thanks,

Mark.


#2

Recently the behavior of older versions of Toad was restored where bracket highlighting now occurs when the caret is located anywhere within the group. In more recent versions the caret had to be adjacent to the bracket. Older Toad would only show the group immediately in scope, but I’ve modified it to show all groups in scope thinking it would aid in complex nesting. I’ll look at trying to visualize that differently. Perhaps a different shade of your bracket matching color for outer groups? The one immediately in scope could highlight as it always has and outer groups somewhat less in your face.

Michael


#3

I could live with that! Thanks Michael.


#4

I’m guessing you haven’t got round to this yet Michael? I’m now using 13.1.0.34 and nothing has changed; any idea when you’ll be able to take a look at it?

Thanks,

Mark.