Saturday, August 8, 2009

Eclipse Java Color Themes

Hi, thank you for visiting. The article is maintained on:

yazkhabiri.com/page/eclipse

29 comments:

  1. Hi there, thanks for the themes. Just a quick question, the syntax highlighting in your themes only work for Java, since when I open files in C++ or Python, I get black foreground fonts. So what's the quickest way to incorporate other languages also to the theme?

    ReplyDelete
  2. Hi Amir,

    The problem with other languages is that they have different syntax rules. So The specific Java syntax coloring rules don't carry over exactly the same. The file 'org.eclipse.jdt.ui.prefs' can be renamed to 'org.eclipse.cdt.ui.prefs' at best for C/C++. If you open up the files you'll see a bunch of java_* specific settings; maybe Eclipse will have better cross language support in future releases.

    ReplyDelete
  3. Thanks for these!

    ReplyDelete
  4. Thanks, looked for those for quite some time.

    ReplyDelete
  5. Thank you very much . I was able to change the theme. So easy on eyes.

    ReplyDelete
  6. Please help. I want to have the theme for php and another web language. How to do it?
    P.S. sorry for my english.)

    ReplyDelete
  7. @Anon
    PHP, and other languages in general, can't import these files correctly. The best one can do is go manually and set the colors (For example the Zenburn color scheme: http://victorgavin.co.uk/zenburn) for their language of choice. From there you can export org.eclipse.*dt.ui.prefs file and org.eclipse.ui.editors.prefs for others to use.

    For more information see my 2nd comment regarding C/C++. Hopefully the Eclipse developers will fix some of these problems (although again is difficult to support a unified theme export for many languages)

    ReplyDelete
  8. Thanks. This is great.

    ReplyDelete
  9. doesn't work in flex builder

    coming from emacs, i say eclipse can hardly be customized at all

    ReplyDelete
  10. It works well in Flex Builder 3. Thanks a lot.

    ReplyDelete
  11. Dude this was awesome I love you! Now my eyes wont hurt from looking at the screen!

    ReplyDelete
  12. Can we establish some kind of standard theme format so that this kind of information is transferable between tools (emacs, vim, eclipse, etc)?

    ReplyDelete
  13. Ahhhhh. My eyes.
    This is fantastic. Thank you for your work on this.

    ReplyDelete
  14. I recently got a 24'' monitor and it was becoming difficult to look at the code with white background. It is much easier now. Thanks.

    ReplyDelete
  15. Thanks, keep it on, it makes the development more colorful:)

    ReplyDelete
  16. Thanks for posting these themes :)

    They inspired me to start with an Eclipse plugin to manage color themes. Right now it supports the plain text and Java editors and the themes Inkpot and Zenburn:

    http://github.com/fhd/eclipse-color-theme

    I'm currently adding support for more editors, probably at least XML, HTML, CSS, JavaScript and C++.

    ReplyDelete
  17. thanks Felix H. Dahlke,
    genius :)

    ReplyDelete
  18. @Felix Thanks for the update, about time somebody made a *real* fix :)

    ReplyDelete
  19. @srand: Thanks a bunch for the update, hope you like the plugin! :)

    ReplyDelete
  20. Hi, I have a question. After apply other color theme, how to reset to default eclipse theme? I can't find where is the default setting. Please help....
    Thanks so much

    ReplyDelete
  21. @evelynbaby
    Close Eclipse, delete org.eclipse.jdt.ui.prefs and org.eclipse.ui.editors.prefs, open Eclipse. It will revert back to the original theme.

    ReplyDelete
  22. Sorry to ask this question, but it seems I'm having problem installing your theme in my eclipse. I'm a linux user, specifically, ubuntu 10.10. Can you make a guide on how can i install it? i really want to use your theme. I tried locating the files in /usr/lib/eclipse but i can't find the files to be replace or overwrite.

    ReplyDelete
  23. @Anon,
    Try http://www.eclipsecolorthemes.org/, its the updated method of getting themes to work :)

    ReplyDelete
  24. i was looking for this for a long time... and for my eyes only avoiding eclipse. now it should be an eye soothing experience.
    thanks

    ReplyDelete
  25. thank you! Arigatou! ヽ('ω')ノ三ヽ('ω')ノ

    ReplyDelete