cEdit is an advanced and free alternative to both common text editors, and IDE's. It has many of the features found in shareware editors, including extensive language support, function listing, built in FTP, projects, and docking support.
Syn is highly customizable text and programming editor. Syn features syntax highlighting for many languages, active scripting, macro recording, the ability to launch a program (e.g. a Compiler) and capture the output, support for projects, etc.