facebook

XML Syntax highlighting

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #227971 Reply

    Rob Reece
    Member

    I 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 = black

    MyEclipse / Editors / XML / XML Styles
    –> Each entry under “Content type” is set to some color on a black background

    However, 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

    #228095 Reply

    Riyad Kalla
    Member

    Rob,
    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 Type

    CSS 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 Type

    As for the un-used preference value found under
    eclipse\workspace\.metadata\.plugins\com.ibm.sse.model\
    xmlsourcecolors.xml
    jssourcecolors.xml
    htmlsourcecolors.xml

    It ONLY affects the ‘=’ found in the TAGS i.e.
    For JSP:
    <%@ page language >> = << “java” import >> = << “java.util.*” %>
    Doesnt affect ‘=’ inside actual scripts

    For HTML:
    <meta http-equiv >> = << “description” content >> = <<“this is my page”>

    For XML:
    <?xml version >> = << “1.0” encoding >> = << “UTF-8”?>

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: XML Syntax highlighting

You must be logged in to post in the forum log in