I love TextPad for editing any type of text files from html to php to xml. I use TextPad to open almost any file type to see what might be in a file that is corrupt or has an unknown extension.  It has a very robust search and replace function.  The macro building for repeat actions is excellent. This text editor is well worth the small investment.