So notepad.exe was my bread & butter on Windows for doing text editing. Not very powerful, but it got the job done. While attempting to play with various config files (more on that in subsequent blog posts), I came across the program TextMate. It’s got all sorts of neat text-editor features, but the best one, by far, is the ability to use the GUI text editor from Terminal. Just type in something like “sudo mate /private/etc/apache2/httpd.conf” and it opens right up in TextMate. Hit save, and it prompts for your password again, but is otherwise very very slick.







You can do that with any Mac application:
open somefile.ext
That will open the file in the default GUI application. You can also specify an application to open it with:
open -a TextEdit somefile.ext
TextMate is great and it has bundle for Ruby and Groovy development amongst many others. It also costs money.
TextWrangler is a great free text editor from BareBones, makers of the classic BBEdit.
And of course a basic "notepad" editor ships with OS X for free: TextEdit.