Yesterday I took a little detour and played with Jedit. Jedit is an open source text editor with a variety of plugins. I was checking out the tidy and xml plugins. It is cheaper alternative to topstyle but with a lot less features. I reread the Udell post a couple of times to figure out exactly what he was trying to do and what he accomplished. Jedit is nice but I think that htmlarea and htmltidy is the direction I should pursue.