tags:

views:

1640

answers:

3

I'm going crazy trying to get all of the editors to look similarly. It looks like there's a different color editor option for each file type/code type, which means it takes FOREVER to customize the view.

Add to that: each code/file type color option seems to honor the default set in the generic options only if it feels like it (seems buggy).

I'm currently using eclipse 3.4.1

Is there a version that is less buggy or is there a more consistent way to change the text colors?

Barring that, has anyone gotten a zenburn-like color scheme in eclipse that would be willing to share?

+1  A: 

I've searched high and low for an answer to the same question and have all but given up. It is not easy to change the color scheme because, as you said, each language has its own options buried deep in the Configuration tree. I've read a little about why 'themes' aren't available and it has something to do with the complexity of eclipse's xml storage technique. I'm sorry that I can't provide a real solid answer but I just wanted to let you know that you're not alone in your frustrations.

If anyone could give a better explanation please do, I would be very interested in learning more.

Mike B
+1  A: 

I've been looking for this too and after a bit of research found a workable solution. This is based on the FDT editor for Eclipse, but I'm sure you could apply the same logic to other editors.

My blog post: Howto create a color-scheme for fdt

Hope this helps!

Wijnand Warren
+3  A: 

It sounds like there isn't currently a good way of doing this because of the way eclipse was designed: there's not a good, flexible, inheritable syntax highlight framework to bring consistency to everything.

While you can export & import preferences as Wijnand Warren's answer states, and that does work... kinda... actually going in and editing the preference files to make sure that you're only sharing color information is probably a huge pain in the butt, so not simple. Also, that still leaves the problem of finding someone who has put in the effort & time to create the syntax coloring in the first place.

Also, every time you add a new type of structured text editor (new language per year anyone?), you'll have to go back into settings & edit the highlighting for that language as well.

I have no experience developing for the eclipse platform, but if someone with more experience would be willing to point me in the right direction (documentation, explanation of how things fit together, etc.), please let me know.

Akrikos
I posted a question related to this: http://stackoverflow.com/questions/603463/eclipse-codebase-is-there-a-place-that-can-intercept-all-the-coloring-data
Sergey