Inspired by the OpenAjax IDE task force.
Making your editor suck less for editing Web content
XHTML5 or polyglot documents
Emacs ships with nxml-mode, a major mode for editing XML which does on-the-fly validation with RELAX NG schema. You can plug fantasai and hsivonen's schema into nxml-mode. The necessary shim code is included in the hober/html5-el project on github.
HTML5 text/html syntax
As of July 2009, none of the several major modes for editing HTML have special support for HTML5 elements, attributes, or syntax.
https://vim.svn.sourceforge.net/svnroot/vim/vim7/runtime/autoload/xml/ and :help xml-omni-datafile might help you get started.
See the HTML5 conformance checking in Vim blog entry for an introduction.
- HTML validation with validator.nu script
- CSS validation is being worked on
nox:~/.vim/ftplugin% svn co http://svn.natalian.org/projects/html5/ . nox:~/.vim/ftplugin% sudo ln -s `pwd`/validate-html.sh /usr/bin/validate-html.sh nox:~/.vim/ftplugin% sudo ln -s `pwd`/validate-js.sh /usr/bin/validate-js.sh
Improving the scripts
Any suggestions? Please get in contact with hendry
- Vim's makeprg syntax requires some horrible escaping, hence the need for an external script
- Vim's errorformat has issues parsing anything too complex, so best edit the stream for the errorformat (not the other way around)
- Vim's quickfix list (:cope) seems to require a filename (%f) in the error format