phphtmlatom-editorauto-indentatom-beautify

How can I make atom-beautify work with html in php file?


I installed the atom-beautify package in my Atom Editor.

I open a file index.php

 <ul>
 <li>Coffee</li>
        <li>Tea</li>
  <li>Milk</li>
        </ul> 

then I make the command "Beautify".

But my code still looks like this:

 <ul>
 <li>Coffee</li>
        <li>Tea</li>
  <li>Milk</li>
        </ul> 

I expect the code to change to this:

 <ul>
   <li>Coffee</li>
   <li>Tea</li>
   <li>Milk</li>
 </ul> 

Solution

  • Have you ever tried keying "beautify html" in atom command line? (using CMD+shift+P in Atom to open command line) It works for me.