Even though BBEdit is HUGELY expensive, its a great editor.
However if your looking for something a little mnore free try TextWrangler
or if your feeling daring learn VIM or Emacs
Personally I use VIM, but it takes a bit of getting used to to say the least.
Also I found this one, havent tried it yet.
http://smultron.sourceforge.net/