Can phpstorm show me W3 validation messages?

Hello,

I was trying HTML5 support in PHPstorm, but i find something missing,if I write HTML code that does not follow W3 rules no error messages appear.

like writing <section> or <article> tag without heading, in W3 validator it should show me:

Warning: Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections.

I searched in settings but no luck finding it, is there such a feature in PHPstorm? 

1
2 comments

PhpStorm doesn't provide out-of-box W3C Validator integration; if you miss it, please vote for http://youtrack.jetbrains.com/issue/IDEABKL-5480

I'd suggest trying one of available offline validators that allow passing a file to validate as CLI option (see http://stackoverflow.com/questions/3586207/validate-html-on-local-machine, http://stackoverflow.com/questions/6646204/are-there-any-command-line-validation-tools-for-html-and-css for possible options)

Once you install such tool, you can set it up as external tool in Idea (Settings | Tools | External Tools), and run it from file right-click menu

0
Avatar
Permanently deleted user

To be honest I didn't think about asking for this feature until I found that CSS validator is already integrated.

This feature is implemented in NetBeans, but the bad thing that it does not support all HTML5 and CSS3 features, so sometimes it shows me some weird errors like undefined tags, which made having W3 validator useless.

but in the other hand PHPStorm receives updates almost every week, that made it the best choice.

anyway I voted for it, I wish to see it soon.

0

Please sign in to leave a comment.