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

后端 未结 10 1980
生来不讨喜
生来不讨喜 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:40

    Tidy can do what you want, but only for whole buffer it seems (and the result is XHTML)

    M-x tidy-buffer
    

提交回复
热议问题