Validate HTML code in several documents

I'm testing PHPStorm5 and 6 EAP and I think it's the best IDE I used so far. However I noticed one (minor) issue and I'd like to know if there's a solution. I'm working with wordpress themes and these themes often do not contain matching html tags in the same php file. So i.e. the content container div starts in header.php and the closing div tag is located in footer.php. This situation confuses the PHPStorm HTML validator because it now reports an invalid div tag in header.php (missing closing tag) and an invalid div tag in footer.php (missing opening div tag). Is there any way to tell PHPStorm to interpret/validate certain files in a project as a group? Is it possible to "tell" PHPStorm that it needs to "combine the code in header.php, index.php and footer.php and validate the content of all 3 files in their entirety"?

Thank you for your help :)

Comment actions Permalink

Nobody knows an answer? Is this not possible with PHPStorm 5/6 atm?

Comment actions Permalink

There is no such opportunity in the current versions.
I created a new request in our tracker according to your proposal. You can vote for this ticket: WEB-6935.
Thanks for your feedback!


Please sign in to leave a comment.