Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a pure HTML5 Emacs mode?

Tags:

html

emacs

Question Authoring HTML5 in Emacs? talks about nxml-mode but, from what I read, that can only be used for XHTML5, I want to use emacs with HTML5 (no XML syntax). Is there any mode with auto-indentation, tag/attribute completion, etc.?

like image 827
Marcelo Santos Avatar asked Jun 16 '10 19:06

Marcelo Santos


2 Answers

Sadly, the answer to that question is no at the moment. However HTML5 emerged relatively soon, so some Emacs support will certainly come up in the (not so)near future. XHTML 5 might seems to be a reasonable compromise at this point.

like image 133
Bozhidar Batsov Avatar answered Sep 20 '22 03:09

Bozhidar Batsov


HTML5 can be written in either HTML or XHTML syntax (I know! Freaky!). So nxml-mode/nxhtml-mode work well if you prefer the latter style. I have not heard whether HTML or XHTML is considered "more correct" or a "better practice".

like image 32
ericx Avatar answered Sep 19 '22 03:09

ericx