A Great, Free OS X Text Editor? Look No Further than TextWrangler
Dan Knight - 2007.08.07
For writing at your computer, the ideal tool is word processing software. It lets you play with fonts, type size, boldface and italic - all the tools you need to write a short story, a novel, an essay, a review, whatever.
For creating code, the ideal tool is a text editor. It doesn't let you play with fonts or color or styles. It lets you see the code you're working on using a single typeface, and the best text editors can use color coding to help you distinguish tags from content.
The undisputed king of text editors on the Mac is Bare Bones Software's BBEdit, which sells for $125 ($49 for education users).
For those who need a bit less or can't afford BBEdit, Bare Bones offers the free TextWrangler 2 program.
For years, Bare Bones offered a free, lightweight version of BBEdit known as BBEdit Lite. I used it for years, and BBEdit 4.6 was exactly the right tool for me in my pre-OS X days. (There were later versions of BBEdit Lite, but version 5.0 and above lost the ability to do a global search-and-replace through the contents of a folder and all of its sub-folders. I needed that.)
TextWranger 1 was a low cost alternative to BBEdit and supposedly replaced BBEdit Lite for OS X users. But it wasn't free. That didn't come about until Bare Bones release TextWrangler 2, and for a lot of people, it's all the text editor you'll ever need.
Text Editing at Low End Mac
Ever since we began this website, we've used Claris Home Page to design our pages and edit our content. It's been a workhorse for over ten years, and to this day I haven't found a program that can completely replace it. (KompoZer, free for Mac, Windows, and Linux, comes closest.)
The HTML code for this page created in and displayed in Claris Home
Home Page hasn't been updated in a decade, and the Web has moved forward during that time. While Home Page produces good, usable code, it isn't standards compliant. But it's a good enough front end that we continue to use it - and the lone reason we continue to be dependent on Classic Mode in OS X.
The HTML for this page as modified and displayed in KompoZer.
Our workflow currently goes something like this:
- Write and/or edit the article in Home Page.
- Open the page in KompoZer to apply CSS styles, which Home Page doesn't support.
- Open the page in TextWrangler and apply Tidy to XHTML in the Services menu.
- Delete a couple extraneous things Tidy to XHTML adds in the header and near the end of the page.
- Back to Claris Home Page to load updated pages to the server. (Home Page has a tool that only uploads pages added or changed since the last uploade. Very nice!)
The HTML code from KompoZer as displayed in TextWrangler.
Thanks to KompoZer, which has replaced Sea Monkey and Nvu in my toolbox, we're down one program compared to what we used to use. KompoZer is a work in progress. It seems to have all the important features of both Nvu and Sea Monkey for creating Web pages, but it's not especially stable at present.
The XHTML code for this page after being run through Tidy to XHTML
Low End Mac is composed of thousands of pages, and there's just no way to know where everything is. Google does a great job of searching our content on the Web, and TextWrangler does a great job of searching the mirrored copy on my hard drive.
For instance, while writing my review of TextSoap, I discovered that it was no longer called textSOAP or TextSOAP. I also discovered that the URL had changed from <http://www.unmarked.com/textsoap.html> to <http://www.unmarked.com/textsoap/>.
First step was to search all of our files for every instance of "textsoap" regardless of case. Then I did a search-and-replace on just those results, replacing "textSOAP" with "TextSoap" on one pass, and "TextSOAP" on the next.
Then I did a search-and-replace to find "unmarked.com/textsoap.html" and substitute "unmarked.com/textsoap/", and after that I looked through the results page and found some links to mac_textsoap.html and textsoap_mac.html, which I also replaced.
That's the primary reason I stuck with BBEdit 4.6 as long as I did, and why I was thrilled when Bare Bones made TextWrangler free. I need to have a tool that can go through the entire website and replace a misspelled name, change an updated URL, substitute a new email address for an old one, and locate links to websites I've learned no longer exist or have expired and been taken over with unrelated content.
Other Neat Features
In addition to having TextWrangler search the current open page or the entire website, I can also have it search only the results of an earlier search (as with the TextSoap example) or only the files I currently have open. Very useful!
TextWrangler works with Services, and the Tidy to XHTML service lets me take the not-quite-standards-compliant code Claris Home Page produces and the much more compliant HTML code KompoZer produces and convert them to XHTML in a flash.
In short, TextWrangler is an invaluable program, and the fact that it's free means anyone running OS X who needs a text editor should have a copy.
Manufacturers and distributors: Interested in having your product reviewed? Please read our review policy.
Recent Low End Mac Reviews
- $4 iPhone 3G/3GS Case Is a Winner, 2012.01.12. Why spend $20 or more on a case for your iPhone 3G or 3GS? This $4 case could be just what you need.
- Memory Cleaner for Intel Macs: It Works, 2011.12.14. If you're running low on system memory, Memory Cleaner can free up additional RAM until you can afford a real memory upgrade.
- Macally iKeySlim: Great Feel and USB 2.0, 2010.11.18. If you're looking for a great USB keyboard for your Mac, the $30 iKeySlim is a winner. The USB 2.0 hub is a bonus.
- More in the Rumor Mill index.
Links for the Day
- Mac of the Day: Quadra 950, introduced 1992.05.18. Apple's huge tower has 5 NuBus slots and runs a 33 MHz 68040 processor.
- May 20 in LEM history: 99: New type of G3 daughter card - 02: iBook G3/700 - PowerBook 1400 very likable - 03: QuickBooks Pro 5 the accounting leader? - 05: Mac mini as disposable as a PC? - 08: Slot-load iMacs: SE/30 for a new generation - SheepShaver - Compleat Guide to the Pismo PowerBook - Virtual PC works with Leopard
- Support Low End Mac
Recent Content on Low End Mac
- World Book Encyclopedia 2012 DVD, Tommy Thomas, Reviews, 2013.03.05. "You may be asking yourself, in an age of Wikipedia and instant information, is World Book still relevant?"
- Vintage Computer Festival SouthEast, April 20-21, 2013, Simon Royal, Mac Spectrum, 2013.02.25. Old Apple gear and old PCs.
- iMessage: The Ultimate Messaging Service?, Simon Royal, Mac Spectrum, 2013.02.21. In most ways, Apple's iMessage is far superior to BlackBerry Messenger.
- More links in our archive.
- Best Mac mini Deals
- Best 13" MacBook Pro Deals
- Best Intel iMac Deals
- Best iPod touch Deals
- Best iPhone Deals
- Best iPod nano Deals
- Best iPod classic Deals
- Best Apple TV Prices
- More deals in our archive.
Low End Mac Reader Specials
Cult of Mac
Shrine of Apple
The Mac Observer
Accelerate Your Mac
The Vintage Mac Museum
Mac Driver Museum
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ