Skip to content

Searching for a Mac Text Editor – some reviews

As part of my M.Ed. project, I’ll be building a web site. Most sane people would do this using Dreamweaver or some similar product. I, however, am not one of those people – I prefer to create web pages by hand-coding the HTML and CSS files. I suppose if I wanted to be uber-geeky about it, I would write my own text editor (in assembler, if I wanted to be really hard core about it), but I’ll stick with ones that are currently available for the Mac.

My requirements are fairly simple. I need a text editor that I can use to write HTML and CSS files. Any text editor could do this. Heck, I could use vi if I really wanted to geek out. I’d like to have an editor that did some of the coding automagically. I like to hand code, but I don’t mind using some tools that help to automate the typing. I could use the code editor in Dreamweaver – I’ve used it before and its actually very comfortable to use. Using Dreamweaver just to do handcoding is like buying a Ferrari just for driving to the local grocery store – a waste of money and not using the functionality to its fullest. Besides, with Dreamweaver I might decide to use the WYSIWYG mode, and that is the way to the dark side.

I also like to use some open source software, if possible. The free (as in beer) part certainly appeals to me, but so does the speechiness type of freedom. In my experience, a strong user community around an open source project is usually a better source of application support than the support available for commercial software. Also, if I am really stuck on something or I have suggestions to improve the program, I can contact the developer(s) directly. Try that with most commercial software!
I did a little bit of research into this, and thought I should share the results with others. Lest you think I am being overly concerned with this, a good text editor is to a coder what power tools are to a carpenter. We can get good results with mediocre tools but its an easier job to do, and more fun, with good tools. Admittedly, my needs as a coder, not to mention my skills, are minimal but I still like to work with proper tools.
OK – here are my thoughts on the text editors I reviewed. I won’t claim that I’ve done a thorough job of testing each editor, so some of these descriptions are based on limited experience.

1. TextEdit
Free with Mac OS (equivalent to NotePad in Windows). Nothing fancy for editing tools, just straightforward text editing. Free with all Macs, and apparently the source code is open and distributed with Xcode. TextEdit also has some nice word processing features, but I don’t need those.
Rating: 1/5 (as an editor; for other uses it would rate 3.5/5)

2. JEdit
Nice editor, many good plugins available including an XML plugin that does automagic tag closing for HTML tags, and makes tag suggestions when creating tags (similar to Dreamweaver code editor). No built in auto XHTML file templating, but a macro was easily written to do the job. Macro recording (or writing, if you aren’t afraid of a little coding). Feels very Emacs-ish. Open source.

Rating: 4/5

3. Smultron
Open source, Mac OS only. It has a very Mac-ish look and feel to it, with the toolbar at the top. Multiple windows can be open simultaneously, with a pane showing a list of currently open documents. Keyboard shortcuts to move between open documents. There is a built including XHTML template. Full screen edit mode for distraction free writing/coding. Includes a command line tool – this editor has many command line connections, including ability to run shell commands, or run the file or selected text. It can auto-close tags, and can make text suggestions for partially completed word. This would make a really nice HTML editor. There is a lot of well-thought out functionality in this editor and may end up being my choice.

Rating: 4.5/5

4. TextWrangler
Proprietary, but free, from the good folks at Bare Bones Software. This is essentially a limited version of BBEdit. It excels at using regular expressions to transfrom text, but as an HTML editor it isn’t as fully featured for coding HTML as Smultron or JEdit. Has an Emacs-ish feel to it.

Rating: 3/5

5. BBEdit
The 500 pound gorilla of Macintosh text editors. I remember using BBEdit on my old (OS 8 era) Mac, and it was a joy to use as an HTML editor (I didn’t do much coding back then). I’m not sure if my memories of BBEdit are correct or if my expectations of an HTML editor have increased, but I find that BBEdit, like Text Wrangler, is an adequate HTML editor but not a particularly great one. The functionality in BBEdit is perhaps too much for my meagre needs, and it is verging on becoming bloatware (IMHO). It is also the priciest of the Mac text editors at US $125, which works out to $145 Canadian, quite a bit considering the availability of free editors like JEdit and Smultron, and the availability of lower price editors like TextMate.
Rating: 4/5

6. TextMate
This is an newer text editor but unlike Smultron, TextMate costs 39 euros, which works out to about $60 Canadian. As an HTML editor, it is as sweet as candy. New (X)HTML documents can be created from a template, which is editable. Keyboard shortcuts are available for almost all standard functions such as moving word by word or to the end of the current line.

An interesting variation on keyboard shortcuts are tab triggers. These are short strings (such as ‘div’ to insert a new div tag) that activate an action when followed by a tab. I typed in ‘div’ followed by a tab, and a pair of div tags were created including a placeholder for an id property; if I want to use it, I tab then type in the id for the div, and if I don’t want it, I hit the delete key then a down arrow and I’m ready to add content inside the div tag. It took me about 30 seconds to create a snippet (piece of text that is used frequently) for a paragraph tag (which suprisingly is not included with the program, or at least I couldn’t find it), then another 10 seconds to assign a tab trigger for it. Sweet!

TextMate was the winner of the Apple Design Award for best developer tool in 2006.

Rating: 5/5

Final thoughts
I’d narrow my choices down to JEdit, Smultron and TextMate. TextEdit has no pretense of being a programmer’s editor, even for something as simple as HTML, and would only be suitable if you liked to type everything out one character at a time. I need something with a little bit more HTML programming finesse. Text Wrangler and BBEdit have great text processing capabilities, but feel a little too emacs-ish for me (not to start a series of comment flaming, but I’m more of a vi guy), and aren’t especially welcoming for someone who just wants to do some productive HTML coding. I like JEdit. It is free software/open source. Its extensibility by plugins is terrific, and there seems to be a strong community (always a good thing for an open source project). I have used it in Linux and Windows environments, and will continue to do so. The Mac-ishness of Smultron and TextMate, as well as their design as coding tools, make them my clear choices. Given my preference to use free (as in both beer and speech) software, Smultron will be my first choice. I may still be lured to TextMate, definitely my favourite of the entire bunch.

7 Comments

  1. I was a hard-core BBEdit fan for many years, then switched to JEdit, then back to BBEdit. I’ve dumped both for TextMate now. Absolutely love it. It’s not completely perfect, but it’s the most productive text editor I’ve used. I still keep JEdit handy for some of the plugins it has, but TextMate rules the roost.

    Tuesday, January 2, 2007 at 2:26 pm | Permalink
  2. Rob Wall wrote:

    Thanks for your input, D’Arcy. I understand your attachment to BBEdit – back in my OS 9 days, ti was probably my favourite Mac program (yeah, I was that much of a geek). I also really like JEdit. I just tried out the blogging bundle in TextMate and that along with your recommendation might still sway me over. In the meantime, I still have another 20 days left for my demo period so I can give it a thorough testing.

    Wednesday, January 3, 2007 at 12:34 am | Permalink
  3. ge morgan wrote:

    At work I used to use editpad lite in a windows environment. Now that I’m no longer in a windows environment :) , I’ve been unsuccessful finding a text editor comparable to editpad lite for my mac. Does anyone know of any? thanks.

    Friday, January 12, 2007 at 7:15 pm | Permalink
  4. Rob Wall wrote:

    I haven’t used editpad lite, but Smultron (http://smultron.sourceforge.net) is a great open source text editor with a lot of great features. Since it’s open source, you are able to try it out for as long as you want!

    Friday, January 12, 2007 at 10:35 pm | Permalink
  5. I’m a BBEdit junkie. I have used it since the late 1990s and pretty much have coded every single web page, CSS file, PHP/perl script, so many I cannot count. So yes, on the “free and cheap” scale it falls off your list; it’s been a long time since they gave a free version (I have an old one somewhere).

    If I had to summarize it in a phrase it is grep search/replace across multiple files. I have used this to change literally thousands of web pages in a batch. In fact, not too sure how many gui apps will give you grep tools.

    “Software That Does Not Suck” is a motto I have shelled out some pesos for.

    Tuesday, January 30, 2007 at 12:29 am | Permalink
  6. TextMate does multifile grep search and replace, too… I like my software to do more than just not suck :-)

    Tuesday, January 30, 2007 at 9:52 am | Permalink
  7. lee webb wrote:

    Hi,

    I’ve begun using Smultron and I thought it auto closed tags, but I can’t seem to get it to do this. I have to manually hit apple-t to close tags.

    Thanks

    Lee

    Saturday, March 28, 2009 at 12:12 pm | Permalink

3 Trackbacks/Pingbacks

  1. Testing with TextMate at StigmergicWeb on Wednesday, January 3, 2007 at 12:14 am

    [...] Portfolio « Searching for a Mac Text Editor – some reviews [...]

  2. GoBloggit on Saturday, January 6, 2007 at 2:52 pm

    Searching for a Mac Text Editor – some reviews…

    Yeah, why? Your typical Mac comes with all the Unix goodies and goodness you could ever need. But there are a bunch of Linux PPC distributions that you can, if you feel the urge, install on your Apple hardware.
    If you’ve been alive the last coup…

  3. Getting Things Done with Python (and TextMate) at StigmergicWeb on Tuesday, January 16, 2007 at 12:34 am

    [...] The TextMate connection is related to my quest for a text editor. On D’Arcy’s recommendation, I gave TextMate a 30 day test drive. As the demo deadline loomed, I realized that I could no longer live without TextMate. Tab triggers are the coolest thing in the world for coding HTML (or any kind of coding). I’ve written the Python script using TextMate, and I can run the script from right in the editor. The icing on the cake is that TextMate can be used as an offline blogging tool! In fact, I’m using it right now to write this entry. Pretty cool, huh? [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*