How can I configure Eclipse to properly syntax highlight and validate HTML files?
At the moment, Eclipse simply offers spelling suggestions for tags and attributes - an exact opposite of desired behavior.
If you want to always use the HTML editor to open HTML files then go to the Eclipse preferences -> General -> Editors -> File Associations. Select the extension up top (e.g. *. htm, *. html) then select the HTML editor in the bottom pane and press the Default button.
Eclipse HTML Editor is an Eclipse plugin for HTML , JSP , and XML editing and has the following features: HTML , JSP , XML , CSS , DTD , and JavaScript colored highlighting.
I found this to be a difficult thing to figure out. I already had an HTML editor installed as part of Eclipse, but it wasn't getting loaded.
Go to Preferences > General > Editors > File Association and click on *.html (and do the same for *.htm). If you have an HTML editor installed, you should see it in the list. Just click it and then click Default to make Eclipse open HTML files using the HTML editor.
If you don't have an HTML editor installed, WTP is fine, per Rahul's suggestion. You may then need to do the above steps to make sure the HTML Editor is chosen when you edit an HTML file.
It is likely that you do not have an HTML editor plugin in Eclipse.
You can download the Web Tools Platform plugin which has a decent HTML editor.
You need the Colorer plugin for Eclipse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With