This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 141134 - Improving of bracket highliting
Summary: Improving of bracket highliting
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 11:00 UTC by Petr Pisl
Modified: 2012-12-19 15:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-07-22 11:00:35 UTC
This issue is base on a user comment in netbeansphp blog:
http://blogs.sun.com/netbeansphp/entry/semantic_coloring_improved#comment-1216683561000

It would be nice to add highlighting whole ()?():() block (I mean the three brackets pairs of the "current" block) like
in this example

function fWhatever ($a, $b) {
return ($a > $b)?(($a < $b)?($a-$b):($b-$a)):(($a == 2)?($b):("("$a == $b")"?"("$a")":"("$b|")"));
}
// | == cursor position, "(" && ")" == highlighted brackets

I tent to use short ifs and it would help a lot in codes that require more complexity. :)

Also higlighting the brackets in a way raymond wrote would add another aspeckt of usefulness ;)
It would be "I always know where I am" - without searching those brackets to place cursor after them and see which one
is yellow/(w/e color suits you ;) )
Comment 1 azrael_valedhel 2008-07-23 22:55:22 UTC
Just to have "raymond's way" also in here:
http://blogs.sun.com/netbeansphp/entry/semantic_coloring_improved#comment-1216649603000
Hello,

How about highlighting the parenthesis then the cursor place between them?

example

function "("$name,$age|,$color")" {}
// when cursor is inside represented by "|" then
// the outer brackets will be highlighted represented by "(" and ")"

The same can be applied for {} brackets

function ($name,$age,$color) "{"
// some code here
$name[] = $name;| // <- cursor here
"}"
------end of raymond's comment-----

What I thought a minute ago is highlighting double quoted and single quoted strings "string" and 'string' - it would be
nice to have an option to gave those strings different highlight colors... Well... I'll just make new issue about that
;) -- It can be found here:
http://www.netbeans.org/issues/show_bug.cgi?id=141435
Comment 2 Tomasz Slota 2010-02-10 08:44:41 UTC
reassigning to default owner
Comment 3 Filip Zamboj 2010-09-15 12:26:07 UTC
batch reassigning
Comment 4 Ondrej Brejla 2012-12-19 15:14:06 UTC
For me it's wont't fix. Current behavior is ok.