Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I really love Eclipse (PDT)... But i'm developing sites using HTML5 and CSS3 and it mark the HTML5 tags like <nav>, <section> and <article> as invalid tags (inexistent).

How can I add those new tags to it?

And what about CSS3 rules?

I read something about remove the "invalid tag" check... and that's not what I want. :(

share|improve this question
    
What version of Eclipse you are using ? –  ukanth May 19 '10 at 16:42
    
Eclipse Galileo build 20100218-0602 for Windows and Eclipse Galileo build 20100218-1602 (v1.2.2.20100216-1730) for Linux. –  TiuTalk May 19 '10 at 17:01
add comment

1 Answer

up vote 3 down vote accepted
+75

Not much info is available in the Zend site as regarding HTML5, so it's unclear whether they truly support it.

From examining the Zend Framework source file Doctype.php, it seems that the DOCTYPE should be declared as simply <!DOCTYPE html> in order to support HTML5, which is the correct format according to the HTML5 specification.

The error might also come from an HTML validator that you have installed.
In this case, you might be able to adjust its preferences.

I also hope that you have installed the latest Eclipse PHP Development Tools.

share|improve this answer
    
@harrymc - I'm using the PDT... As I said in the question.. The only thing I can do about it is disable the "invalid tag" error.. And that's not correct. –  TiuTalk May 25 '10 at 10:23
    
@TiuTalk: What about my other points - doctype and html validator? –  harrymc May 25 '10 at 10:52
    
I'm having the same issue. Using a fresh eclipse PTD I just downloaded then -- up to date and no custom validators or anything installed. In my index file I've got <!DOCTYPE html> but the 'view' file with the html5 tags still throw warnings. –  Dean Rather May 25 '11 at 10:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.