Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » coloring of string delimiters
coloring of string delimiters [message #669459] Tue, 10 May 2011 12:18 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: May 2011
Junior Member
When generating Strings to Javascript for example, it can become difficult to distinguish string delimiting quotes from quotes contained in the string. I'd love to see the possibility to have the string delimiting quotes in another color than the rest of the string.

Does somebody know if it is possible to change the color of string delimiters?
Is there a plugin able to change the coloring?

If there is currently no way to do it, can someone point me in the right direction to change the current highlighting?

Thanks!!


edit: I'm talking about regular Java Strings as in

var cmd = "alert(\"" + msg + "\")"

This would be more readable:

var cmd = "alert(\"" + msg + "\")"

[Updated on: Tue, 10 May 2011 12:33]

Report message to a moderator

Re: coloring of string delimiters [message #669494 is a reply to message #669459] Tue, 10 May 2011 14:13 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 5/10/2011 5:48 PM, forums-noreply@eclipse.org wrote:
> When generating Strings to Javascript for example, it can
> become difficult to distinguish string delimiting quotes
> from quotes contained in the string. I'd love to see the
> possibility to have the string delimiting quotes in another
> color than the rest of the string.

The whole string is colored blue by default, so you should be able to
distinguish the string from the rest of the code. So the quotes anywhere
in the middle of the blue text are contained in the string :)

However, I do not think the blue string is that different from the black
text that generally surrounds it. You can maybe try to change the color
(or even) of strings to something other than blue in Java > Editor >
Syntax coloring.

> Does somebody know if it is possible to change the color of
> string delimiters?
Not from within JDT. You may file a bug with JDT/UI, but then you should
also suggest a good color for the string delimiters :)

> Is there a plugin able to change the coloring?
>
> If there is currently no way to do it, can someone point me
> in the right direction to change the current highlighting?
>
> Thanks!!
Previous Topic:text to text
Next Topic:Eclipse Forgets how to Build
Goto Forum:
  


Current Time: Fri Apr 26 13:01:42 GMT 2024

Powered by FUDForum. Page generated in 0.14858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top