简体   繁体   English

是否有纯HTML5 Emacs模式?

[英]Is there a pure HTML5 Emacs mode?

Question Authoring HTML5 in Emacs? 问题在Emacs中编写HTML5? 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). 谈到nxml-mode但是,从我读到的,只能用于XHTML5,我想使用带有HTML5的emacs(没有XML语法)。 Is there any mode with auto-indentation, tag/attribute completion, etc.? 是否有任何模式具有自动缩进,标签/属性完成等?

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. 然而,HTML5相对较快地出现,因此一些Emacs支持肯定会在不久的将来出现。 XHTML 5 might seems to be a reasonable compromise at this point. 在这一点上,XHTML 5似乎是一个合理的妥协。

HTML5 can be written in either HTML or XHTML syntax (I know! Freaky!). HTML5可以用HTML或XHTML语法编写(我知道!Freaky!)。 So nxml-mode/nxhtml-mode work well if you prefer the latter style. 因此,如果您更喜欢后一种风格,nxml-mode / nxhtml-mode可以正常工作。 I have not heard whether HTML or XHTML is considered "more correct" or a "better practice". 我还没有听说HTML或XHTML被认为是“更正确”还是“更好的做法”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM