A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

IDE: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
No edit summary
(installation instructions)
Line 6: Line 6:
See the [http://blog.whatwg.org/vim-checker HTML5 conformance checking in Vim blog entry] for an introduction.
See the [http://blog.whatwg.org/vim-checker HTML5 conformance checking in Vim blog entry] for an introduction.


Idea is to integrate Web services via [http://en.wikipedia.org/wiki/CURL curl] to help you write better Web code.
Idea is to integrate Web services via [http://en.wikipedia.org/wiki/CURL curl] with your editor [http://en.wikipedia.org/wiki/Vim_editor vim].


HTML validation with [http://validator.nu/ validator.nu] script
* HTML validation with [http://validator.nu/ validator.nu] script
* http://svn.natalian.org/projects/html5/html.vim
* JavaScript validation with [http://www.jslint.com/ JSlint] script
* http://svn.natalian.org/projects/html5/validate-html.sh


Javascript validation with [http://www.jslint.com/ JSlint] script
== Quick setup ==
* http://svn.natalian.org/projects/html5/javascript.vim
 
* http://svn.natalian.org/projects/html5/validate-js.sh
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 ==
== Improving the scripts ==

Revision as of 09:16, 11 June 2008

Inspired by the OpenAjax IDE task force.


VIM

See the HTML5 conformance checking in Vim blog entry for an introduction.

Idea is to integrate Web services via curl with your editor vim.

Quick setup

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

Caveats:

  • 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