I realize that this may not be all that helpful of a post, but XCode also has a decent code editor that understands a variety of different types of code syntax and can be used on text files independent of an entire project. I use it a lot to create my java command line programs for class (I just create a new file, not a new project, and compile it in Terminal). Of course TextMate is probably better suited for that, but not enough for me to fork out the cash.