Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » coloring of string delimiters
coloring of string delimiters [message #669459] Tue, 10 May 2011 08:18 Go to next message
Eclipse UserFriend
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 08:33] by Moderator

Re: coloring of string delimiters [message #669494 is a reply to message #669459] Tue, 10 May 2011 10:13 Go to previous message
Eclipse UserFriend
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 Jul 04 23:53:56 EDT 2025

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

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

Back to the top