Bug 76437 - visualize scope / indentation level using background colors
Summary: visualize scope / indentation level using background colors
Status: RESOLVED DUPLICATE of bug 69455
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-17 03:44 EDT by David Pletcher CLA
Modified: 2004-10-18 05:13 EDT (History)
0 users

See Also:


Attachments
example of coloration strategy 1 (8.12 KB, image/png)
2004-10-17 03:45 EDT, David Pletcher CLA
no flags Details
example of coloration strategy 2 (8.47 KB, image/png)
2004-10-17 03:46 EDT, David Pletcher CLA
no flags Details
example of coloration strategy 3 (8.48 KB, image/png)
2004-10-17 03:46 EDT, David Pletcher CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Pletcher CLA 2004-10-17 03:44:52 EDT
It would be potentially quite useful if the JDT UI would visually indicate the
extent of nested scope blocks using subtle background coloration.  Leaving aside
the moral issue that vast and ungainly blocks of code make for unmaintainable
programs, I've often been compelled to hunt up and down through pages of poorly
formatted code I didn't write, searching for the beginning or end of a block, or
for a stray mismatched brace character.  I have never seen this feature
implemented before, but I believe it could be very useful.

I've contemplated several possible coloration strategies:
1) simple alternation through a palette of colors based on the indentation level
2) like 1, but with colored bands growing from the left showing parent levels
3) cycling through varied colors for successive blocks at the same indentation level

I'll attach my primitive attempts at rendering strategies 1 through 3.  My
skills as a graphic artist preclude me from doing a really good job at that; in
particular, my coloration blocks don't extend properly from each opening brace
to the corresponding closing brace.  Nonetheless, I believe they get the point
across.

Thanks for giving this idea some thought!
Comment 1 David Pletcher CLA 2004-10-17 03:45:37 EDT
Created attachment 15228 [details]
example of coloration strategy 1
Comment 2 David Pletcher CLA 2004-10-17 03:46:01 EDT
Created attachment 15229 [details]
example of coloration strategy 2
Comment 3 David Pletcher CLA 2004-10-17 03:46:16 EDT
Created attachment 15230 [details]
example of coloration strategy 3
Comment 4 Dani Megert CLA 2004-10-18 05:13:06 EDT

*** This bug has been marked as a duplicate of 69455 ***