Bug 71142 - [syntax highlighting] Highlight of enclosing elements
Summary: [syntax highlighting] Highlight of enclosing elements
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-29 20:40 EDT by Milton Smith CLA
Modified: 2004-08-02 06:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milton Smith CLA 2004-07-29 20:40:53 EDT
The current UI tracks enclosing braces and parenthisis by outlining the 
element with a square when the cursor is placed before or after the target 
element.

I propose a more useful paradigm.  As the cursor moves within an enclosing 
zone very lightly highlight(change background) between the elements of the 
zone.  For example,

try {


} catch( Exception foo ) {

}

As my cursor travels down the page thru the psudo code once it passes the 
brace in "try {" eclipse would highlight the zone between:

try {

}

Depending upon where my cursor is on the page as I travel down if I were to 
also pass thru:

( Exception foo )

Highlighting would be removed in the previous zone and reapply between the 
parenthesis.  Having control over hightlight color and turning the feature off 
altogether would be great.

Seems like a trivial thing but each devloper has a different style.  Sometimes 
source control systems screw up formatting.  In these cases having visual 
clues would be a huge bonus.  Getting the proper enclosing elements right is 
critical to good code.  That's my Christmas list....thanks guys!