如何使 atom-beautify 与 php 文件中的 html 一起使用?

pea*_*ove 2 html php auto-indent atom-editor atom-beautify

我在 Atom 编辑器中安装了 atom-beautify 包。

我打开一个文件 index.php

 <ul>
 <li>Coffee</li>
        <li>Tea</li>
  <li>Milk</li>
        </ul> 
Run Code Online (Sandbox Code Playgroud)

然后我发出“美化”命令。

但我的代码仍然是这样的:

 <ul>
 <li>Coffee</li>
        <li>Tea</li>
  <li>Milk</li>
        </ul> 
Run Code Online (Sandbox Code Playgroud)

我希望代码更改为:

 <ul>
   <li>Coffee</li>
   <li>Tea</li>
   <li>Milk</li>
 </ul> 
Run Code Online (Sandbox Code Playgroud)

吳品儒*_*吳品儒 5

你有没有试过在 atom 命令行中键入“ beautify html ”?(在 Atom 中使用CMD+shift+P打开命令行)它对我有用。