Default html doctype [message #695188] |
Mon, 11 July 2011 08:37 |
|
I've just update to Eclipse Indigo with PDT 3.0.0.v20110516.
My php files contains some html and Eclipse reports errors for many of them since they use pre-html5 elements (eg the "cellspacing" attribute of "table").
Since my projects are still targeted to html4, is there a way to specify the doctype for these php files?
Thank you
Michele
|
|
|
|
Re: Default html doctype [message #695612 is a reply to message #695525] |
Tue, 12 July 2011 06:47 |
|
Thanks Toshihiro! It worked!
Initially I thought it didn't, since my php files were still reporting html5 validation errors even after a "Refresh" (F5).
But I forced a full rebuild of the project by doing this unorthodox method:
1. I opened one of the php files
2. Select all->Cut (so the file has been emptied)
3. Saved the file
4. Pasted in in its previous content
5. Saved it
Eclipse started a rebuild progess and all the validation errors disappeared, in all the php files.
Thanks a lot!
[Updated on: Tue, 12 July 2011 06:47] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04125 seconds