Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » html5 tags in .php do not validate without a doctype
icon9.gif  html5 tags in .php do not validate without a doctype [message #703360] Wed, 27 July 2011 13:46
JeffS Missing name is currently offline JeffS Missing nameFriend
Messages: 2
Registered: July 2011
Junior Member

I hope someone can put me out of my misery Sad

Gentoo / Helios 3.6.2 PDT 2.2.1

I only use eclipse for php/html web development, I was running Galileo which worked fine except I could not get html5 validation to work. So I upgraded to helios.

html5 validation now works fine:

.html files with or without doctype declaration will validate
.php files will only validate if the contain a doctype

So the following generates no warnings in a .html file
<!DOCTYPE html>

But in a .php file
<!DOCTYPE html>
generates no warnings or errors

generates warning "Unknown tag (section)"

How do i set eclipse up or the project up so that .php files that contain html5 tags will still be validated as html5 doctype ?

Thanks in advance
Previous Topic:pdt editor refuses to load a simple html file
Next Topic:Rule not working.
Goto Forum:

Current Time: Sat Jun 23 21:59:22 GMT 2018

Powered by FUDForum. Page generated in 0.01199 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top