Travis,
I personally use EditPlus for the coding (PHP, PHP-GTK, Java, C, etc) I do in Win32. It does all the things that dOpefiSh mentioned in Alliare's HomeSite for all the languages I mentioned plus Perl, HTML, and others. The syntax and auto-completion files are user-editable and pretty easy to follow. However, I don't think either EditPlus or HomeSite will do what you seem to be looking for..... auto-formatting badly written code into something a bit more sensible. However, they will both make it a bit easier to bit the code apart when you're trying to reformat. HTH!!
Cheers,
Geoff A. Virgo