Is there a tool that works like Resharper for C# but for HTML/PHP for Windows platform? I often copy some large chunks of code to notepad from CMS and it’s often unformatted or very badly formatted so it’s hard to read. Would like to have some Resharper CleanUp feature that would format it properly for easy to use/read document.
Example before formatting:
<p>
<a class="hov" href="index.php?option=com_content&view=article&id=15&Itemid=16"><img alt="" src="files/images/buttons/btn_kalkulator1.gif" style="width: 272px; height: 235px;" /></a><a class="hov" href="index.php?option=com_content&view=article&id=10&Itemid=15"><img alt="" src="files/images/buttons/btn_kalkulator2.gif" style="width: 272px; height: 235px;" /></a></p>
Example after formatting
<p>
<a class="hov" href="index.php?option=com_content&view=article&id=15&Itemid=16">
<img alt="" src="files/images/buttons/btn_kalkulator1.gif" style="width: 272px; height: 235px;" />
</a>
<a class="hov" href="index.php?option=com_content&view=article&id=10&Itemid=15">
<img alt="" src="files/images/buttons/btn_kalkulator2.gif" style="width: 272px; height: 235px;" />
</a>
</p>
I use JetBrains PHPStorm IDE – lots of format setting for PHP, JS, HTML; quick reformat and other things that are very usable and realy make life easier. I advise you to try it.