I write some fairly complex php code and don't always have time to spend on good quality annotation or indentation. So, I sometimes lose the end of an if statement or do statement and have to find out where it went.

For example I need to be able to click on an IF statement in php and have a program identify where it think that condition ends and highlight the code in between.

I suspect that dreamweaver might do similar for html tags but I don't know if it can do so with php code. If not, do you know a freeware program which can do that?