I want an IDE or text editor that automatically (when clicking in the indent button) reindents every line of code (from the begining to the end).
For example, Sublime 3 doesn't do this. It just reindents everything based on your position of the cursor when you press Ctrl+Shift+V or (another example) this code:
echo "<li id='officeHeader'>
<a href='#' class='dropdown-toggle'>
<i class='menu-icon fa fa-desktop'></i>
<span class='menu-text'>
Text
</span>
<b class='arrow fa fa-angle-down'></b>
</a>
<b class='arrow'></b>
<ul class='submenu'>
<li id='navCompany'>
<a href='#'>
<i class='menu-icon fa fa-caret-right'></i>
Text
</a>
<b class='arrow'></b>
</li>
<li id='navUser'>
<a href='#'>
<i class='menu-icon fa fa-caret-right'></i>
Uses
</a>
<b class='arrow'></b>
</li>
<li id='navPublication'>
<a href='#'>
<i class='menu-icon fa fa-caret-right'></i>
Public </a>
<b class='arrow'></b>
</li>
</ul>
</li>";