简体   繁体   中英

How to mimic Sublime Text's HTML dom completion in Emacs?

Currently in Sublime Text 2 I can do the following while editing a .html file:

hr.margin-none <TAB>

and it will expand automatically to

<hr class="margin-none"></hr>

Is there a similar function in Emacs? I found something on Flexible Expand but it doesn't seem to do what I was hoping (or maybe I'm just using it wrong.)

Thanks!

You can do the same thing in Emacs. Just install the emmet-mode and enable it. Reading the following page would help you.

https://github.com/smihica/emmet-mode

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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