I am looking for an app that can do what the "Format Document" function does in Visual Studio. Something really stupid (maybe even an add-on to a normal text editor) that will basically turn this:
<div><table><tr><td><?php echo 'earth'; ?></td></tr></table></div>
into this:
<div>
<table>
<tr>
<td>
<?php echo 'earth'; ?>
</td>
</tr>
</table>
</div>