Can emacs re-indent a big blob of HTML for me?

后端 未结 10 1968
生来不讨喜
生来不讨喜 2021-01-29 20:09

When editing HTML in emacs, is there a way to automatically pretty-format a blob of markup, changing something like this:

  
10条回答
  •  执笔经年
    2021-01-29 20:53

    In emacs 25, which I'm currently building from source, assuming you are in HTML mode, use
    Ctrl-x
    h

    to select all, and then press Tab.

提交回复
热议问题