Hi, when I create a New Project in Eclipse, source files such as .html .xml are colored, but when I create New Java Project they aren't. How can I change this ? Thanks for help
A:
On the files that are missing the color coding right-click in either the project or package explorer with the mouse and check the open with
entry on the context menu. It will show which editor is active for the file. I'm guessing it's the text editor - just select the correct editor for the file (for example, the XML editor) and you should see the coloring.
hbunny
2010-07-21 15:55:51
+1
A:
You have to right-click on the .xml (or similar) file, choose "Open with" and select the right editor. If the editor is not listed in the menu, choose a new one with "Other..." option.
frm
2010-07-21 15:56:58
A:
For mixed HTML and Java projects, I use Dynamic Web Project. You might have to download WTP if you do not use the Eclipse JEE edition.
Thorbjørn Ravn Andersen
2010-07-21 16:06:18