Creating HTML5 in Emacs?

What is the best solution for developing HTML5 in Emacs? Is there a mode that will check compliance?

+42
html html5 emacs
Jul 04 '09 at 15:55
source share
4 answers

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.

+23
Jul 04 '09 at 20:16
source share

I just saw this project, which apparently takes care of the necessary work of teaching the nxml mode about HTML5:

http://github.com/hober/html5-el/tree/master

+19
Jul 05 '09 at
source share

An easier to install solution could be web mode. It definitely works well with HTML5 and does not require you to go through XHTML hoops.

JavaScript and CSS blocks work the way you expect.

It also includes the ability to handle common language patterns such as php, erb, handlebars, etc.

Read more about http://web-mode.org . It is available as a package, at least on MELPA.

+7
Apr 28 '13 at 22:23
source share

I had nXML before, but I found that the schemes are quite cumbersome to install, which means that I did not get it to work with HTML5. Now I am using web mode. The disadvantage is that there is no real-time check. But that's cool, because there are online tools for this.

0
Oct 17 '13 at 11:58
source share



All Articles