Macintosh Text Editors. Boring == Good
I got all excited yesterday and licensed a new text editor (SubEthaEdit). I've been doing a lot of programming lately in lots of different programming languages and I'm getting sick of working with text editors that don't launch instantaneously. (Notepad++ under Windows is absolutely awesome in two regards: first, it launches instantly; second, it remembers everything you had open so you don't mind accidentally quitting from it. I have issues with Notepad++, but launch time is definitely not one of them.)
Anyway, let me end the suspense and say that SubEthaEdit annoyed the hell out of me pretty darn quickly because it can't seem to syntax JavaScript worth a damn. But hey, who codes in JavaScript? For non-programmers, that's sarcasm by the way, JavaScript is almost completely unavoidable today, certainly for web developers. It's also a really nice and pretty well-defined language; there's no excuse for not being able to syntax-color it since every other editor out there does it just fine. I simply took it for granted that SubEthaEdit would be OK there.
Here's what I want in a text editor (for those of you not familiar with me previous rants):
- launch instantly (hey, Photoline and Blender — highly capable 2d and 3d graphics apps — manage it)
- solid regular expression support
- search across directories
- diff documents (and do it well)
- no fracking project documents polluting my repositories (or needing to be ignored) and especially no "create a new project if you want to tab between documents" crap
- ability to handle a dragged folder (i.e. dragging a folder to the application does what you'd hope and expect)
- usable undo (never thought I'd need this requirement until I tried TextMate for frack's sake)
- decent autocomplete (and no, having to type a special key means you lose)
- cope with every freaking language I can think of either natively or with a reasonably amount work on my part (e.g. PHP, XML, XSL, CSS, JavaScript, Python, Perl, ActionScript 3)
- instant access to functions etc.
- scriptable via one or more languages I already know
- good command-line integration
- lots of standard features that I can't think of all at once but if they're absent, it's a killer (e.g. ability to show line numbers; ability to force a source file to be viewed as a given language)
- easy to customize syntax-coloring
- top notch (native) GUI
Here are some things I don't especially care about:
- code folding (seems cute but I never seem to use it and with instant access to functions, not really needed)
- integrated version control (I use a Cornerstone on the Mac, and Tortoise SVN on Windows and I'm very happy with both)
- good interoperability with other tools (e.g. force compile in XCode)
- live preview (I'm going to need my browser open anyway, so who cares?)
Executive Summary
BBEdit remains the best text editor on the Mac. And, if you can't afford it, TextWrangler is nearly as good and it's free. Many of the other programs listed here are fine until you encounter some annoying little edge-case — the only options I'd rate as unacceptable are TextEdit (for programming; fine for simple stuff), Komodo EditSadly, BBEdit still takes too long to launch. (So does SubEthaEdit, but it's pretty fast.)
Nitty Gritty Details
Here are the (graphical) Mac OS X text editors I've tried, licensed, and a very quick take on what's good and bad about them.Flaming Aside: I've also tried vim, emacs, and pico (when I did undergraduate computer science, we'd all have killed for any of them, heck the cool guys liked sed) but not only do I suck at using them, so does everyone. I've watched expert emacs and vim users and with all their spiffy shortcuts and macros I don't see them getting stuff done any faster than a moderately competent GUI user. Yeah it's great you can script it in LISP. I appreciate that all the spiffy shortcuts and sekrit power-user stuff makes some folks feel más macho, and I know that some people think self-esteem is worth fostering independent of actual accomplishment, but command line editors don't do anything for me either on the self-esteem or productivity front, so I'll pass, thanks.
| Editor | Best Feature | Most Annoying Issue |
|---|---|---|
| BBEdit | Very intelligently set up syntax coloring (i.e. not by language), real autocomplete, TextMate-style macros, powerful and useful snippets. No major flaws and nothing missing. | Carbon. Slowish launching. Cluttered. |
| Coda | Revolutionary and much imitated interface. | Getting bloated. Integrated documentation is a joke (and not usable offline which might excuse it). Missing some features. UI is a bit strange when not editing a website. |
| Eclipse | Very capable editor with strong autocomplete and integrated documentation, if you're willing to use a huge, slow Java app. | Nothing epic, but it's a huge, slow Java App. |
| Espresso | Basic UI is outstanding — better than Coda! Combines some of the best features of TextMate with decent undo, high-level features (e.g. snippet support, source navigation). | Nothing epic, but customizing syntax coloring is ridiculously complex (and more than slightly buggy) and needs to be done language-by-language. Some of the "cool" features are either poorly implemented (e.g. adding sugars, setting up servers) or simply don't work (e.g. live view on a local server). |
| Komodo Edit | Nothing special. | Nothing epic, but it's slow and not special. |
| Smultron | Fast and light. | No longer supported, missing lots of useful features. |
| SubEthaEdit | If you're into XP (Extreme Programming) the shared editing features are probably it. Otherwise, it's very lightweight and yet has very capable features (e.g. its very simple live view implementation works better in most respects than those in Coda or Espresso). Awesome regexp reference in help menu. | Syntax coloring is simply broken. Autocomplete is worse-than-useless. Dragging folder to it does not work. |
| TextEdit | Launch Time. | Nothing epic, given what it is. But no line numbers, no syntax coloring, etc. At least it's not Notepad or TeachText. |
| TextMate | Incredibly well-thought out macros (essentially "inline dialog boxes") that allow very rapid blocking out of code. Would be breathtaking if integrated with solid autocomplete implementation — as it is, this idea has been stolen and improved on by others. | Undo is one-character-at-a-time. It is so painful to use TextMate because of it's terrible undo that it's almost mind-boggling. Developer appears to be out-to-lunch (no/slow updates). Arrogant user community. |
| TextWrangler | Best multi-file search and regexp support I've seen (along with BBEdit); great diff. | Nothing epic, but no autocomplete. |
| XCode | Excellent UI and features, integrated documentation, real autocomplete — if you're using a blessed language. | Launch time is more like Photoshop than TextEdit. Interface can be cluttered and bloated or a bit too minimalist for my taste. |