Jens, I would suggest that you try writing a script that keeps track of how many tags have been opened (look for "<"), versus how many tags have been closed ("[^>]*/>") on a line-by-line basis. Using that number, you should be able to indent the code properly.
Let us know what you've got so far. Beau > <table ... > > <tr ... > > <td ... > > <table ...> > <tr ... > > <td ... > > ... > </td> > <td ... > > ... > </td> > </tr> > </table> > </td> > </tr> > </table> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php