Bracket highliting in editor

Started by kalikiana, July 10, 2006, 04:42:26 PM

Previous topic - Next topic

kalikiana

Bonjour les gents,
I noticed that some very useful feature is not available in PellesC. When I'm using Notepad++, it highlights brackets pairs when the cursor is over one of them. For example like this:

short str2bool(char* sBool){
if(!strcmp("true", sBool))
  return 1; return 0;}

In my opinion, that makes some typos pretty much easier to find.
Maybe this could get implemented in the future?

Yours,
  Cris

AlexN

Quote from: "kalikiana"Bonjour les gents,
I noticed that some very useful feature is not available in PellesC. When I'm using Notepad++, it highlights brackets pairs when the cursor is over one of them. For example like this:

short str2bool(char* sBool){
if(!strcmp("true", sBool))
  return 1; return 0;}

In my opinion Pelles kind bracket pair highlighting is a great new idea (i have never seen it before). Your kind of bracket pair highlighting could be added, but i would miss Pelles highlighting.
best regards
Alex ;)

kalikiana

What kind of highlighting do you mean? The version I have, which is 4.00.50, doesn't have anything like this and I didn't find a setting for that.

kalikiana

Aahh, now that I installed PellesC version 4.5 I have the dashes which show what brackets belong where. It's different, but I will see how it works these days. :)

Pelle

It's the same idea. The Pelles C approach isn't perfect yet, but it's a start...
/Pelle

kalikiana

Quote from: "Pelle"It's the same idea. The Pelles C approach isn't perfect yet, but it's a start...

To be honest, I prefer the above mentioned way Notepad++ uses as it is much more usable. And since the Beta is unusable for me anyway (see the other thread) I have to switch apps from time to time, depending on what I'm doing at the moment.

Pelle

I'm not convinced - either a different color is used for highlighting, which is really ugly IMO, or a bold font is used for highlighting - which usually means the text after the bracket will move left/right depending on the selection state (a bold "(" will be wider than a normal "("...)
/Pelle

kalikiana

Quote from: "Pelle"I'm not convinced - either a different color is used for highlighting, which is really ugly IMO, or a bold font is used for highlighting - which usually means the text after the bracket will move left/right depending on the selection state (a bold "(" will be wider than a normal "("...)

In fact, in Notepad++ there is an option for that. I agree that brackets must not become bold as you say, but rather get highlighted in a color. And using a highlight color is perfect for me.

lamer

Quote from: "AlexN"In my opinion Pelles kind bracket pair highlighting is a great new idea (i have never seen it before).
I absolutely agree with you. It's clear and very "visual" =D>