text editor

I just use the PDT (PHP enabled) version of Eclipse with some plugins, including the HTMLTidy plugin.. Does syntax highlighting and all sorts of things.. HTMLTidy plugin will format your HTML based on the settings you give it..

There's also vim, emacs.. :shrug: