Results 1 to 9 of 9

Thread: Customize GSP Editor?

  1. #1
    Join Date
    Oct 2007
    Posts
    4

    Question Customize GSP Editor?

    Is it possible to modify the color scheme for the GSP editor? I've been spoiled by Aptana and its ability to highly customize their individual editors (e.g. HTML, JS, JSDocs, CSS, PHP, etc.) and would really like to be able to complete the theming of all the typical source files I work with.

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    JGarrido,

    you can customize the color scheme of the Groovy Editor in the preferences at Groovy -> Editor.

    Let me know if that helps.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3
    Join Date
    Oct 2007
    Posts
    4

    Default

    Thanks for the reply Christian, but I really did mean the GSP editor, NOT the Groovy editor.

    Here's a screenshot of the theming option available within Aptana 3.0 (note you can add your own definitions):


    But I'd settle for the canned options available from Aptana 2.0 by file type/editor:


    Does anyone know if this is currently in the works?

  4. #4
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    The GSP editor borrows syntax highlighting and background colors from the JSP editor (which in turn borrows from structured editors).

    So, the background color can be changed at:

    Preferences -> General -> Editors -> Text Editors

    Other colors can be changed at:

    Preferences -> Web -> JSP Files -> Editor -> Syntax Coloring

    Let me know if this is what you need. I don't know much about Aptana, but it may be that it offers some syntax coloring that we do not. I would be interested in hearing if there is anything missing.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  5. #5
    Join Date
    Oct 2007
    Posts
    4

    Default

    Thanks Andrew, I'll check into those options. They're not nearly as robust as I'd like, although I imagine these types of enhancements rank fairly low on the priority totem pole.

    That being said, I think the ability to import/export and switch profiles would probably be the first request(s) on my list, and a great start on improving usability of this editor in particular.

  6. #6
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    An update to this...there is an eclipse color theme plugin. I haven't tried this for GSPs, but it advertises that it works on XML, HTML, and JSP editors and so it should work for GSP editors.

    http://marketplace.eclipse.org/conte...se-color-theme

    If you try this out, please let me know how it works for you.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  7. #7
    Join Date
    Jun 2011
    Posts
    3

    Default

    I've found this post and it's helped a lot, but I'm still having some trouble. If I have something like:
    Code:
    <g:if test="${flag}">
        <label>foobar</label>
    </g:if>
    the word foobar is appearing in white on a white background. I've been searching for where to change this, but I haven't found it. Could someone point me in the right direction?

  8. #8
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    Hi rschlachter,

    Have you made any changes to the default settings on any of your editors?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  9. #9
    Join Date
    Jun 2011
    Posts
    3

    Default

    Actually, I had from using the Eclipse Theme importing. I was able to solve this problem by setting the HTML editor Syntax Coloring and the Javascript Editor Syntax coloring back to default.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •