Text Editors For The Mac

BBEdit is one of the leading text editors for the Mac, and the price reflects that. It’s beyond the reach of a casual user, but offers a range of advanced functionality. Great for searching and replacing, organizing projects, working with remote servers, in-built code validation/standards checking, and highlighting any code you throw at it.

  • By

One of the most common mistakes WordPress-newbies make is using a word processor (like Microsoft Word, Pages, and WordPerfect) to edit server-side source-code files (such as .html, .css and .php files, etc). The problem here is that word processors need to embed a lot of extra data in the file (behind the scenes) in order to define various things like font styles, etc — data that is almost always both specific to the word processor being used AND completely incomprehensible to the kind of server-side systems required to run websites (be them powered by WordPress or otherwise). The solution, however, is extremely simple: when creating and/or editing server-side files (such as those used with WordPress) be sure to only ever use a purpose-built Text Editor. Let’s take a look at a few of the best options created specifically for the task: both free and premium — for both Macs and Windows:

Premium Text Editors:

Looking for more than just a basic text editor and got the cash to spare? Then go for one of these (note: scroll down for some excellent free alternatives)…

Sublime Text (for Windows, Macs, and Linux)

Publicly released in 2008, Sublime Text is now one of the most popular and highly-regarded text editors available! One of the most notable things that sets this particular software apart is that it works across all three major platforms (Windows, OSX, and Linux) — on top of which it also supports a huge range of languages, has extensive customizability via JSON settings files (including project-specific and platform-specific settings), and offers a huge range of features including column selection and multi-select editing, auto-completion, snippets, in-editor code building and a particularly handy navigation system that lets users open files with only a few keystrokes and instantly jump to specific symbols, lines or words.

(click to enlarge)

Price – $70 (note: free trial available).

BBEdit (for Macs)

Designed specifically for software developers and web designers (and with over 20 years of history), BBEdit contains powerful multi-file text searching capabilities including strong support for Perl-compatible regular expressions and GREP. It includes FTP and SFTP tools, integrates with various code management systems, supports version control, shows differences between file versions and allows for the merging of changes. Also noteworthy is the fact that the same company that makes BBEdit, also offer an entirely free version named ‘TextWrangler’ (see below) — which may very well suffice if all you’re looking for is a top-notch text editor to edit (or even create) a few source files from time to time!

(click to enlarge)

Price – $49.99 (note: free trial available).

TextMate (for Macs)

Billed as ‘the missing editor’ and awarded the Apple Design Award for Best Developer Tool at Apple’s Worldwide Developers Conference in 2006, TextMate is a much-loved text editor with a number of notable features, including declarative customizations, tabs for open documents, recordable macros, folding sections, snippets, shell integration, and an extensible bundle system. In short: it’s both a joy to use and highly-capable — what’s more, it’s also particularly well-documented — heck, it even has its own book! If you’re a hardcore coder developing on the Mac, be sure to check this one out!

(click to enlarge)

Price – $54 (note: free trial available).

Free Text Editors:

Although the above premium text editors are all very very nice, if you’re only a basic/beginner developer then you may well find one of these free options will more than suffice…

Atom (for Windows, Macs and Linux)

Released on June 25th 2015, Atom is the newest text editor on this list — and a choice that professional coders everywhere will likely want to seriously consider! Written in CoffeeScript and Less, Atom is a completely free and open-source text editor with support for plugins written in Node.js — referred to by its creators as “A hackable text editor for the 21st Century”.

Atom is a text editor that’s modern and extremely user-friendly — a tool you can customize to do just about anything with. It features cross-platform editing, a built-in package manager, smart auto-completion, a file system browser, four UI and eight built-in syntax themes, multiple panes and — of course: handy find and replace features.

(click to enlarge)

TextWrangler (for Macs)

The free alternative to BBEdit (see above), TextWrangler differs to its premium counterpart in a number of ways — all of which are detailed in a nice table on the official Bare Bones website here (notably lacking various HTML markup tools, text completion and file organization features). Whenever I find myself having to recommend an entirely free text editor for the Mac (or when I need to use one on someone else’s computer etc), I almost invariably go straight for this one — mainly because it’s just so darn simple to use!

(click to enlarge)

Text Editor For Mac Free

Komodo Edit (for Windows, Macs, and Linux)

The free and Open-Source counterpart of Komodo IDE, Komodo Edit allows user customization through plug-ins and macros, and boasts a range of different features, including auto complete, multiple selections, smart snippets (view a complete list). The downside of all this free power though is because of its IDE roots, it perhaps isn’t quite as user-friendly as some of its simpler rivals. By all means give it a go (especially if you’re more of an advanced user), but if all you’re wanting to do is edit a few individual source files, then this one might just be a bit too daunting to start out with!

(click to enlarge)

Notepad++ (for Windows)

Regarded by many as the best free text editor available for Windows (and with over 28 million downloads to date), Notepad++ is a robust, powerful and highly capable text editor that gets the job done! It supports over 50 programing languages, opens large files significantly faster than the default Windows Notepad (mentioned below) and boasts a range of impressive features, including tabbed editing (thereby allowing you to work with multiple open files in a single window), split screen, auto-completion, macros, syntax highlighting, syntax folding and a whole host of other handy functionality!

Plus two more (the Default Mac & Windows Text Editors):

Although sometimes completely overlooked, both Mac and Window operating systems both come with their own default text editors built in — and whilst they’re certainly not the best (having none of the refinements of their more fully featured counterparts), they’ll certainly do the job if all you’re looking to do is make a few simple edits…

Notepad (for Windows)

Offering only the most basic text manipulation functions, such as finding and replacing text, Notepad (not to be confused with WordPad — which is NOT a text editor) is by far the most basic text editor listed in this article — with almost none of the handy features (syntax coloring, code folding, regular expressions, macros, block-select, etc, etc) found in just about all of its 3rd party counterparts!

TextEdit (for Macs)

Mac’s default text editor, TextEdit, combines features of a text editor with those of a word processor, such as rulers, margins, and multiple font selections — allowing it to be used as both a text editor AND a basic word processor — depending on the settings/preferences. Similarly to Notepad (mentioned above), it has almost none of the numerous features found in its 3rd party rivals. While it may well do the job for a basic edit or two, if you’re intending to edit server-side files on a regular basis, you’ll do a lot better with one of the free or premium options mentioned above.

(click to enlarge)

Wrapping up: How to Choose? Which is Best?

Well, first off: all seven of these text editors are built for coders and all seven are pretty darn awesome! What’s more, every one of them is available as a free trial — meaning you can give each a carefree whirl before deciding. If you’re a hardcore coder working in multiple languages you’ll probably appreciate some of the specific software development tools and high-end functionality (like multiple selections, split editing and project organization features) found only in some of the premium options (if this sounds like you then be sure to check out about the most popular premium text editing software available: Sublime Text) — update: serious coders should also be sure to check out the newest on this list: Atom — however, if you’re only a casual coder looking for a top-end text editor with basic features like syntax highlighting, macros and spell-checking, etc, then maybe start with say TextWrangler (a personal favorite of mine) if you’re on the Mac or Notepad++ if you’re a Windows user and see how you get on — after all, there’s really no need to pay top-dollar for features you’ll perhaps never use/need!

Note: For a comprehensive list of just about all the different text editors currently available check out this Wikipedia article.

Top tip: before editing any files, ALWAYS make a quick back up of them first: because there’s usually no going back once things have been overwritten without one!

Know of any other top text editors for Macs and/or Windows? Any preferences?

TOP DEALS

Save a handsome 25% on MaxCDN!

Comments (policy)
Active3 months ago

I searched for this and found Maudite's question about text editors but they were all for Windows.

As you have no doubt guessed, I am trying to find out if there are any text/code editors for the Mac besides what I know of. I'll edit my post to include editors listed.

Free

  1. Aquamacs and closer to the original EMacs
  2. TextMate2 - GPL

Commercial

Articles related to the subject

Thank you everybody that has added suggestions.


closed as not constructive by Bo Persson, Flexo, casperOneApr 2 '12 at 19:34

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.

39 Answers

12 next

I haven't used it myself, but another free one that I've heard good thing about is Smultron.

For

In my own research on this, I found this interesting article:Faceoff: Which Is The Best Mac Text Editor Ever?


I thought TextMate was everyone's favourite. I haven't met a programmer using a Mac who is not using TextMate.


  • Emacs
  • Vim

But I use TextMate, and can say that it is, without a doubt, worth every penny I paid for it.


Sublime text is awesome (http://www.sublimetext.com/2). Excellent search features, very fast and lightweight. Very decent code completion.

I also use RubyMine and WebStorm a lot (http://www.jetbrains.com/). They are excellent but not all purpose like TextMate.



I've tried Komodo out a bit, and I really like it so far. Aptana, an Eclipse variant, is also rather useful for a wide variety of things. There's always good ole' VI, too!


If you ever plan on making a serious effort at learning Emacs, immediately forget about Aquamacs. It tries to twist and bend Emacs into something it's not (a super-native OS X app). That might sound well and all, but once you realize that it completely breaks nearly every standard keybinding and behavior of Emacs, you begin to wonder why you aren't just using TextEdit or TextMate.

Carbon Emacs is a good Emacs application for OS X. It is as close as you'll get to GNU Emacs without compiling for yourself. It fits in well enough with the operating system, but at the same time, is the wonderful Emacs we all know and love. Currently it requires Leopard with the latest release, but most people have upgraded by now anyway. You can fetch it here.

Alternatively, if you want to use Vim on OS X, I've heard good things about MacVim.

Beyond those, there are the obvious TextEdit, TextMate, etc line of editors. They work for some people, but most 'advanced' users I know (myself included) hate touching them with anything shorter than a 15ft pole.


CotEditor is a Cocoa-based open source text editor. It is popular in Japan.


Best open source one is Smultron in my opinion, but it doesn't a torch to TextMate.


There's a new kid on the block - PHPStorm. I used it for a whole year. Its not free but offers an individual license of 49$ for a year, free for Open Source Developers.

  • Speedy for an IDE - Its based on Java so looks somewhat like Eclipse/Netbeans but smokes them to dust in terms of speed (not as fast as Coda/Textmate as this is an IDE).
  • Keyboard shortcuts galore - I seldom touched the mouse while developing using PHPStorm (that's what I didn't like about Coda)
  • Subversion support built-in - Didn't need to touch Versions or any other SVN client on Mac
  • Supports snippets, templates - zen-coding is supported as well
  • Supports projects, though in separate windows
  • File search, code search
  • code completion, supports PHPDoc code completion too

  • BBEdit makes all other editors look like Notepad.

It handles gigantic files with ease; most text editors (TextMate especially) slow down to a dead crawl or just crash when presented with a large file.

The regexp and multiple-file Find dialogs beat anything else for usability.

The clippings system works like magic, and has selection, indentation, placeholder, and insertion point tags, it's not just dumb text.

BBEdit is heavily AppleScriptable. Everything can be scripted.

In 9.0, BBEdit has code completion, projects, and a ton of other improvements.

I primarily use it for HTML, CSS, JS, and Python, where it's extremely strong. Some more obscure languages are not as well-supported in it, but for most purposes it's fantastic.

The only devs I know who like TextMate are Ruby fans. I really do not get the appeal, it's marginally better than TextWrangler (BBEdit's free little brother), but if you're spending money, you may as well buy the better tool for a few dollars more.

  • jEdit does have the virtue of being cross-platform. It's not nearly as good as BBEdit, but it's a competent programmer's editor. If you're ever faced with a Windows or Linux system, it's handy to have one tool you know that works.

  • Vim is fine if you have to work over ssh and the remote system or your computer can't do X11. I used to love Vim for the ease of editing large files and doing repeated commands. But these days, it's a no-vote for me, with the annoyance of the non-standard search & replace (using (foo) groups instead of (foo), etc.), painfully bad multi-document handling, lack of a project/disk browser view, lack of AppleScript, and bizarre mouse handling in the GVim version.

Text Editors For The Mac

jEdit runs on OS X, being Java-based. It's somewhat similar to TextMate, I think.

Editra looks interesting, but I've not tried it myself.


TextMate not for 'advanced programmers'. That does not make sense, TextMate contains everything an 'advanced programmer' would want. It allows them to define a bundle that allows them to quickly set up the way they want their source code formatted, or one that follows the project guidelines, quick easy access to create entire structures and classes based on typing part of a construct and hitting tab.

TextMate is my tool of choice, it is fast, lightweight and yet contains all of the features I would want in a tool to program with. While it is not tightly integrated in Xcode, that is not a problem for me as I don't write software for Mac OS X. I write software for FreeBSD.


Definitely BBEdit. I code, and BBEdit is what I use to code.


You might consider one of the classics - they're both free, extensible and have large user bases that extend beyond the Mac:

  • Aquamacs - emacs for OS X (emacs in a shell window is also an option)
  • Mac Vim - VI with a Mac-specific GUI (vim in a shell window is also an option)

I prefer an old-school editing setup. I use command-line vim embedded in a GNU Screen 'window' inside of iTerm.

This may not integrate well with XCode, but I think it works great for developing and using command-line programs. If you spend any significant time working in a terminal, GNU Screen is worth the 30 minutes it takes to master the basic terminal multiplexing concepts.


Coda's great for PHP/ASP/HTML style development. Great interface, multiple-file search and replace with regexp support, slick FTP/SFTP/etc integration for browsing and editing remote files, SVN integration, etc.

It now supports plugins and the plugin editor can import TextMate bundles, so there's a bright future there. There aren't a lot of must-have plugins yet because the plugin support was newly introduced with version 1.6 a few months back. It's a popular app, though, so I expect more in the future.

The 'killer features' for me are:* Seamless editing of remote files* Code navigator (symbol browser; pane that lists functions etc)

Most people aren't really into using symbol browsers but as I have to maintain a lot of unfamiliar code I find them invaluable.

I'm not sure that Coda has the 'raw power' of TextMate though. I plan on getting familiar with TextMate next.


I make use of Komodo IDE. It supports a huge number of languages, and is customisable but is a bit expensive (my company bought me a copy). A really good alternative is the free version called Komodo Edit. Loads really quickly and has a decent feature list and I find myself turning to it rather than the full IDE for a lot of jobs.



I actually prefer EditRocket over TextMate. I use it on both my Mac and Ubuntu machines. It is nice to use the same editor on multiple operating systems.

Text Editor For Macbook Pro


Textmate is state of the Art editor, but if someone is thinking about developing on several platforms without awkward memory eaters monsters like jedit, eclipse, netbeans etc take a look at geany (geany.org). It is free. The only problem the editor has not esthetic look and feel on Mac OS X :)


Fraise is a nice free option. It has some rough edges, but you can't beat the price. I believe it's a fork or successor of Smultron.




Text Editors For Mac Terminal

I use Eclipse as my primary editor (for Python) but I always keep SubEthaEdit handy as my supplemental text editor (free trial, 30 euros to license). It's not super-complicated but it does what I need.


Another vote for Smultron. I used it when doing some XQuery programming and being able to define a keyword files for syntax color highlighting was great.


I have installed both Smultron and Textwrangler, but find myself using Smultron most of the time.


I would love to use a different editor than XCode for coding, but I feel, that no other editor integrates tightly enough with it to be really worthwhile.
However, given some time, TextMate might eventually get to that point. At the moment though, it primarily lacks debugging features and refactoring.

For everything that does not need XCode, I love TextMate. If I had another Mac-user in my workgroup I would probably consider SubEthaEdit for its collaboration features. If it is Emacs you want, I would recommend Aquamacs (more Mac-like) or Carbon Emacs (more GNU-Emacs-like)


I've been using BBEdit for years. It's rock-solid, fast, and integrates into my Xcode workflow decently well. (I'm not sure anything integrates into Xcode as well as the built-in editor, but who has time to wait for the built-in editor?)

For small team projects which don't use a source control system, or for single user editing on multiple machines, SubEthaEdit comes highly recommended.


Eclipse and Netbeans have text editors among a whole lot of other stuff. I don't think you would want to wait 10 seconds for your text editor to become ready :/...If you are going to spend some serious time coding then spend some time and learn to use vim (emacs too but, I recommend vim)


Not the answer you're looking for? Browse other questions tagged macoseditor or ask your own question.