title: Is there a way to auto-indent HTML/PHP files?
body: <p>My first place to look at this was a fix with Notepad++.
  This quite quickly brought me to "TextFX HTML Tidy".</p>
  
  <p>Read the description and it seemed to be the problem for all my problems.</p>
  
  <p>However, the install is quite hard, apparently TextFX used to be standard practice for Notepad++, for some reason that is no longer the case. I eventually fixed this by downloading an older install for Notepad++ and copied the plugin folder to my own Notepad++ file.</p>
  
  <p>This gave me acces to the correct plugin, but this plugin is written purely for HTML, C++, or XML. 
  Since I use php in my files, this gives some complications. Normal  tags are ignored as they should be, but when I use php inside an html string, in a link for instance, the php tags get converted to html.</p>
  
  <p>For instance:</p>
  
  <pre><code>The start of my sentence &lt;a href="&lt;?php bloginfo('url');?&gt;" class="something"&gt;Here my anchor tekst&lt;/a&gt;.
  </code></pre>
  
  <p>After tidy HTML becomes</p>
  
  <pre><code>The start of my sentence &lt;a href="%3C?php%20bloginfo('url');?%3E" class="something"&gt;Here my anchor tekst&lt;/a&gt;.
  </code></pre>
  
  <p>Rendering this solution unusable. 
  There must be a lot of people looking for this functionality, and since this one is no longer standard practice for Notepad++, I figured there must be a better method to auto format your HTML code. But for some reason I can't find it.</p>
  
  <p>So my question is: Is there a way to autoformat my code, clearing empty lines and indenting tags in the correct opening and closing order?</p>
  
  <p>Preferably with Notepad++ but any other program will do.</p>
  
  <p>Kind regards</p>