How can I add hotkey and context menu item to send HTML file to validator.w3.org ?

I have enabled quirks mode but I am not satisfied with the quality. Now I use https://validator.w3.org/#validate_by_input as the most reliable way to check my markup. I open the browser Copy-Paste, it's exhausting practice, how can I automate it? It would be really helpful to have a shortcut, menu item and key combination to launch default browser with opened w3c with the HTMl file I'm currently editing.

 

PS: Intellij IDEA 2017 Ultimate on top of MS Windows 10

1 comment
Comment actions Permalink

there is no way to automate it... 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 (File | Settings | Tools | External Tools), and run it from file right-click menu

0

Please sign in to leave a comment.