- This topic has 1 reply, 2 voices, and was last updated 19 years, 7 months ago by Riyad Kalla.
-
AuthorPosts
-
Rob ReeceMemberI use a black background on all my files in Eclipse, but my windows background is white. I’ve set my colors as:
General / Editors / Text Editors
–> Foreground color = white
–> Background color = blackMyEclipse / Editors / XML / XML Styles
–> Each entry under “Content type” is set to some color on a black backgroundHowever, the “=” character between name=”name” and value=”value” doesn’t show up. It seems its font color is hardcoded to black. It shows up when I highlight the line since my highlight background color is not black.
Rob
Relevant information:
WinXP Pro SP2
MyEclipse 3.8.4
Eclipse Version: 3.1.0
Build id: I20050219-1500
Riyad KallaMemberRob,
This is a bit manual right now but please navigate to your <eclipse workspace dir>\.metadata\.plugins\com.ibm.sse.model directory and open the jspsourcecolors.xml file, change the line:<color name=”tagAttributeEquals”/>
to
<color name=”tagAttributeEquals” foreground=”#ffffff”/>
Where #ffffff is whatever hex color you would like it to be. We appologize for this inconvenience.
Here is a complete rundown of the operator highlighting for each editor by our internal developer for reference if this is not what you needed:
I Tested for coloring of the following operators and brackets
+ – = * / { } ( )JS Editor:
+ – = * / () can be configured through the “Default Code” Content type
{ } can be configured through the “Keywords” Content TypeCSS Editor:
{ } can be configured through the “Curly Brace” Content Type
+ = * / ( ) can be configured through the “Default” Content Type
( *’s only inside style tags )
– * can be configured through the “Selector” Content Type
(*’s only outside style tags )JSP Editor:
For elements inside <% %> Tags since the rest is colored acc to HTML Prefs+ – = * / { } ( ) can be configured through the Java Editors Syntax Colors
i.e. Preferences->Java->Editor , Syntax->Others
(after this we need to re-open the JSP File)There WAS a color-propery assigned for this. It used to use HTML’s
SCRIPT_AREA , but that property is now removed ( commented out ) so
Java Editor’s Color is used by default.XML Editor:
+ – = * / { } ( ) in the value of attributes can be configured through the
“Attribute Values” Content Type
+ – = * / { } ( ) inside and outside tags can be configured through the
“CDATA Content” Content Type
+ – = * / { } ( ) outside the XML processing scope can be configured
through
the “Content” Content Type
HTML Editor:
= + / * – { } ( ) can be configured through the “Content” Content TypeAs for the un-used preference value found under
eclipse\workspace\.metadata\.plugins\com.ibm.sse.model\
xmlsourcecolors.xml
jssourcecolors.xml
htmlsourcecolors.xmlIt ONLY affects the ‘=’ found in the TAGS i.e.
For JSP:
<%@ page language >> = << “java” import >> = << “java.util.*” %>
Doesnt affect ‘=’ inside actual scriptsFor HTML:
<meta http-equiv >> = << “description” content >> = <<“this is my page”>For XML:
<?xml version >> = << “1.0” encoding >> = << “UTF-8”?> -
AuthorPosts