A Great, Free OS X Text Editor? Look No Further than TextWrangler
Dan Knight - 2007.08.07
![]()
![]()
![]()
![]()
Low End Mac Reader Specials
Memory To Go Special: MacPro 8 Core Memory 4GB kit $154 / 2GB kit $94, New 2008 iMac 2GB $46. MacBook Pro / MacMini / iMac Intel Core2 DUO 2GB $44 / 1GB $23--Free shipping available.
Download Typestyler, still the Ultimate Styling Tool for Internet, Print and Video Graphics. Works great in Classic with a Native OS X Version on the way. Free Tryout: www.typestyler.com
LA Computer Company: Specials on AppleCare, iMac's, Apple Batteries and Apple A/C Adapters. Also Great prices on Used Apple Computers. Call 1-800-941-7654 Click Here.
OWC: Juice up your iPod w/NewerTech High Capacity Battery from $19.99 Free Installation Videos for most models. Pro Installation Service w/FedEx Shipping From $57.95 (Battery Included). - www.MacSales.com
Mac users can finally play Party Poker for Mac. Not only that, they can also learn how to play PokerStars for Mac.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.
Compare products like desktop computers, laptops, and LCD TVs side by side! All the information and reviews to make the best purchasing decision for a new cell phone GPS products or MP3 players. The Ciao network makes searching products easy for you.
MacPro Memory 667Mhz With Apple Spec Heat Sink 2GB $ 82 / 4GB $128 / 8GB $256 - Click to Maximize your Macs...
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.
History
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
Page 3.
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.
Workflow
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
in TextWrangler.
Global Search-and-Replace
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 Content on Low End Mac
- Looking for a Content Management System That's as Easy as Mac, Dan Knight, Mac Musings, 08.29. Low End Mac needs to move to a content management system, but the few we've tried just don't cut it for people used to the simple elegance of the Mac.
- First 3 Million Mac Quarter, Skinny on Mac mini Pricing, Mac-like gOS, and More, Mac News Review, 08.29. More plan to buy Apple products than ever before, complete reset can fix MobileMac synch problems, Apple boosting computer and smartphone share, and more.
- New 'Books Likely in September, 17" PowerBook Display Fault Site, SSD Security, and More, The 'Book Review, 08.29. Also 6 ways to speed up your MacBook, next generation MacBook Air CPU, MacBook Air Update, LapStrap carrying solution, rise and fall of ultraportables, bargains from $220 to $2,699, and more.
- iPhone 3G Reception 'Completely Normal', AT&T International Data Plans for iPhone, and More, iNews Review, 08.29. Also longer life for iPod earbuds, an alternative to MobileMe, new cases and apps for iPhone, AppStoreGems website launched, and more.
- 10 Mac Browsers Compared, Simon Royal, Mac Spectrum, 08.28. A look at Internet Explorer, Radon, Opera, Safari, Shiira, iCab, Firefox, Netscape Navigator, Flock, and Camino running in Leopard.
- Clone and Boot: Another Advantage of the Mac OS, Kev Kitchens, Kitchens Sync, 08.28. Unlike Windows, Apple makes it possible to clone a bootable drive (Classic Mac OS or OS X) and use it with another supported Mac.
Latest Deals on Low End Mac
- Best Power Mac G4 Deals, 08.29. Used 450 MHz AGP, $75; 500, $99; 800 QS, $199; 1.25 GHz MDD, $375; 450 MHz dual, $179; 867 dual, $300; 1 GHz dual, $395; 1.42 dual, $575.
- Best iBook G3 Deals, 08.29. Used 300 MHz clamshell, $150; 500 CD, $150; 800, $200; 600 CD-RW, $240; 900 Combo, $300; 14" 600, $360; 900, $400.
- Best iPod nano Deals, 08.29. Used 2 GB iPod nano, $89; refurb 3G 4 GB, $99; new, $140; refurb 8 GB, $149; new, $179.
- Best MacBook Deals, 08.28. Used 1.83 GHz, $799; 2.0 black, $875; refurb 2.1 GHz, $899; 2.4, $1,099; black, $1,299; new 2.1, $1,019 after rebate; 22, $1,094; 2.4, $1,219 a/r; black, $1,394 a/r.
- Best iMac G5 Deals, 08.28. Used 17" 1.6 GHz Combo, $499; 1.8 SuperDrive, $530; 2.0, $600; 1.9 iSight, $625; 20" 1.8 GHz, $580; 2.0, $650; 2.1 iSight, $700.
- Best classic Mac OS Deals, 08.28. System 6, $10; 7.1, $12; 7.5.1, $4; Mac OS 7.6, $13; 8.0, $13; 8.1, $48; 8.5, $25; 8.6, $20; 9.0, $20; 9.2.2, $20; more.
- More links in our archive.
About LEM | Support | Usage | Privacy | Contacts
