Bug 168546

Summary: [Editors] Highlight externalized strings within XML editors
Product: [Eclipse Project] PDE Reporter: Simon Archer <sja.eclipse>
Component: UIAssignee: Mike Pawlowski <mike.pawlowski>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: b.muskalla, baumanbr, darin.eclipse
Version: 3.3Keywords: noteworthy
Target Milestone: 3.4 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Simon Archer CLA 2006-12-19 09:51:14 EST
It would be helpful if a highlight color preference was provided for externalized strings, such as "%name".  Today there is only one preference for all strings ("Constant strings"), which makes it tricky to spot values that you intend to externalize.

Not only would this feature help the reader find externalized string, but it would probably be helpful in spotting places where you forgot to prefix the string with a percent sign.

I would like to suggest that the default color not be some shade of green, but rather something distinct, such as magenta.  ;-)
Comment 1 Brian Bauman CLA 2006-12-19 17:10:13 EST
Mike, when you get a chance can you take a look at this?  I figured you are the goto guy for XML work :)
Comment 2 Mike Pawlowski CLA 2007-09-14 13:37:06 EDT
Fixed.  Patch released to HEAD.

Target:  3.4 M2

Work Done:

* Highlight externalized strings within the following contexts:
  -> XML attribute values
  -> XML element text content

* Added new "Externalized strings" preference to control highlight color
  -> Default color is a neutral purple (HTML/CSS color) - sorry Simon,
     magenta hurts my eyes ;))

Noteworthy !
Comment 3 Simon Archer CLA 2007-09-14 16:08:33 EDT
Sounds ideal, thanks.  Noteworthy indeed.