My best suggestion is to use nxml-mode (available as packages on several linux, re distributions on this platform) and download the html5 RelaxNG compact format specifications from the HTML5 specification page (or any other source if you have one).
The Nxml mode checks xml files on the fly according to relaxNG specifications and gives you nice customization features and convenient functions for writing documents faster, such as inserting end tags, etc. The author is James Clark, so you know that the author knows his XML.
If you download it as a system package, you can simply add it to your auto-mode-alist and be nice. I just set the following two variables for autocomplete, and more documents are available at the first link.
(nxml-bind-meta-tab-to-complete-flag t) (nxml-slash-auto-complete-flag t)
When it is downloaded, just download the file you need and specify the location of the scheme for html5, save its location through the menu, and you should be on the go. There are also links to nxml-mode documentation in the link provided.
Knut Haugen Jul 04 '09 at 20:16 2009-07-04 20:16
source share