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 IRC (such as one of these permanent autoconfirmed members) or send an e-mail to admin@wiki.whatwg.org with your desired username and an explanation of the first edit you'd like to make. (Do not use this e-mail address for any other inquiries, as they will be ignored or politely declined.)

Note: This wiki is used to supplement, not replace, specification discussions. If you would like to request changes to existing specifications, please use IRC or a mailing list first.

IDE

From WHATWG Wiki
Jump to: navigation, search

vim

vim natively ships with CSS, Javascript & HTML syntax highlighting provided the feature is switched on.

vim also has completion features documented at http://vimdoc.sourceforge.net/htmldoc/insert.html#ft-css-omni

Install

After installing Pathogen to easily manipulate vim's runtimepath.

    cd ~/.vim/bundle; git clone https://github.com/kaihendry/vim-html5

Usage

Javascript unpacker and beautifier

Drop it into ~/.vim/ftplugin/javascript/jsbeautify.vim from http://www.vim.org/scripts/script.php?script_id=2727

To run the beautifier, employ the keystrokes [\]+[f]+[f].


Emacs

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.