We've had a few occasional threads concerning this. My preference is for BBEdit (full version, not Lite... which is still good for free, but lacks the all important eyesight saving code-colouring). In fact, BBEdit is really all I use. For XHTML, CSS, PHP; pretty much most code that I need...