Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse not syntax highlighting files other than build.xml?

Eclipse is not highlighting the syntax on my web.xml and index.jsp file. In fact the only file it is correctly highlighting is the build.xml which it has identified as an ant build file.

enter image description here

It seems to just ignore the fact that this is an xml file, not a plain text file. When I highlight over it it gives the message "The word 'xml' is not correctly spelled"?

Also of interest if I copy and paste the contents of build.xml (which has syntax highlighting working fine) into another text file either in the same folder or another then it will not work

I am using Eclipse Juno on Windows 7 64bit

edit: as it turns out it was because I was opening the xml files using the text editor. if I open it using Ant editor in eclipse then it has the highlighting

like image 341
Arvin Avatar asked Sep 29 '12 07:09

Arvin


1 Answers

As it turns out it was because I was opening the xml files using the text editor. if I open it using Ant editor in eclipse then it has the highlighting

like image 57
Arvin Avatar answered Sep 28 '22 04:09

Arvin