Bug 106721 - [nls tooling][syntax highlighting] java property editor should highlight "special characters"
Summary: [nls tooling][syntax highlighting] java property editor should highlight "spe...
Status: ASSIGNED
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:
: 328017 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-11 03:34 EDT by David Williams CLA
Modified: 2012-08-09 02:26 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2005-08-11 03:34:32 EDT
when editing the following example in a property file, the 
two '\t's in following example will be interpreted as "tabs". It 
would be very helpfull if properties file editor recognized these 
special characters, highlighted them differently as \t and then also 
highlight them as "normal" when escaped, as in \\t (maybe then the
single escape character getting some special highlight). 

This would help avoid "silly" errors. (as tab is not intended in following
example ... it just happens to be a directory name in windows. 

    osgi.syspath=D:\tests\testarea\plugins
Comment 1 Dani Megert CLA 2005-08-11 04:25:02 EDT
good idea.
Comment 2 Dani Megert CLA 2006-03-20 12:46:42 EST
This won't make it into 3.2
Comment 3 Deepak Azad CLA 2010-10-19 13:39:10 EDT
*** Bug 328017 has been marked as a duplicate of this bug. ***
Comment 4 Deepak Azad CLA 2010-10-19 13:42:57 EDT
With bug 65571 there is a hover in the editor which shows the real string. This
hover can also be used to verify the typed property value.
Comment 5 Deepak Azad CLA 2010-10-21 10:57:45 EDT
The editor could also show 
- an error marker if the there is a malformed \uxxxx sequence. Currently this just fails at runtime.
- a warning is there is an unnecessary \. Currently this is just silently ignored.

Or instead of showing markers, these incorrect characters could be colored differently to indicate a problem.
Comment 6 Dani Megert CLA 2010-10-21 11:05:28 EDT
(In reply to comment #5)
> The editor could also show 
> - an error marker if the there is a malformed \uxxxx sequence. Currently this
> just fails at runtime.
> - a warning is there is an unnecessary \. Currently this is just silently
> ignored.
> 
> Or instead of showing markers, these incorrect characters could be colored
> differently to indicate a problem.
Please don't load your thoughts into an unrelated bugs.
Comment 7 Dani Megert CLA 2010-10-21 11:12:41 EDT
>Please don't load your thoughts into an unrelated bugs.
Unrelated because we never use coloring to report problems: we always use markers and/or annotations. Please file a new bug where we can discuss how to report incorrect characters.
Comment 8 Deepak Azad CLA 2010-10-21 11:30:12 EDT
(In reply to comment #7)
> Unrelated because we never use coloring to report problems: we always use
> markers and/or annotations. Please file a new bug where we can discuss how to
> report incorrect characters.
I know the error reporting part is unrelated, but the identification of special/incorrect characters would be common code...

Anyway filed Bug 328374.