NO

Author Topic: Bracket highliting in editor  (Read 5656 times)

kalikiana

  • Guest
Bracket highliting in editor
« 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

Online AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Bracket highliting in editor
« Reply #1 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.
best regards
 Alex ;)

kalikiana

  • Guest
Bracket highliting in editor
« Reply #2 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.

kalikiana

  • Guest
Bracket highliting in editor
« Reply #3 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. :)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Bracket highliting in editor
« Reply #4 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...
/Pelle

kalikiana

  • Guest
Bracket highliting in editor
« Reply #5 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.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Bracket highliting in editor
« Reply #6 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 "("...)
/Pelle

kalikiana

  • Guest
Bracket highliting in editor
« Reply #7 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.

lamer

  • Guest
Re: Bracket highliting in editor
« Reply #8 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>