Pelles C forum

Pelles C => Feature requests => Topic started by: kalikiana on July 10, 2006, 04:42:26 PM

Title: Bracket highliting in editor
Post by: kalikiana on July 10, 2006, 04:42:26 PM
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
Title: Re: Bracket highliting in editor
Post by: AlexN on July 11, 2006, 08:06:39 AM
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.
Title: Bracket highliting in editor
Post by: kalikiana on July 11, 2006, 01:49:37 PM
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.
Title: Bracket highliting in editor
Post by: kalikiana on July 12, 2006, 04:46:00 AM
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. :)
Title: Bracket highliting in editor
Post by: Pelle on August 04, 2006, 12:07:51 PM
It's the same idea. The Pelles C approach isn't perfect yet, but it's a start...
Title: Bracket highliting in editor
Post by: kalikiana on August 04, 2006, 07:29:41 PM
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.
Title: Bracket highliting in editor
Post by: Pelle on August 04, 2006, 10:28:47 PM
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 "("...)
Title: Bracket highliting in editor
Post by: kalikiana on August 05, 2006, 12:30:18 AM
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.
Title: Re: Bracket highliting in editor
Post by: lamer on August 05, 2006, 04:57:43 PM
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>