TextEdit is one of the apps included with each copy of macOS, but it is overshadowed by word processing apps like Pages and Microsoft Word as well as dedicated text editors like Ulysses and Bear. Today we’ll look at some of TextEdit’s hidden talents, which may increase your use of this often-overlooked tool.
Open and Save Word Documents
Our first tip deals with Microsoft Word. While it’s considered the “gold standard” of word processing applications, it has many more features than most people ever use. As a result — and because Apple’s Pages app is free — many Mac users don’t have Word installed. So what do you do if you get a Word (.doc or .docx) document in an email?
Well, you could open in in Pages, but if you want a truly minimalist Mac installation for an older Mac, you might not even have that app installed. Fortunately, you can open Word documents in TextEdit.
There are a couple of ways to do this. First, you can drag your .doc or .docx file to the TextEdit app and drop it. The other way? Right-click the file, then select Open With… and select TextEdit.
Complex Word documents — like those with embedded images and many different text styles — aren’t going to look exactly like they do when opened in Word or Pages. However, if all you need to do is see what text is contained in a Word document, TextEdit is up to the task.
Likewise, if you need to share a TextEdit document with someone who uses Word as their sole word and text processor, you’re in luck. Let’s say you have written an important screed in TextEdit’s rich text mode and you want to save it in Word format.
Select Save… from the File menu, and in the Save dialog that appears (see image above), you’ll see a pop-up menu for File Format. You have a number of different choices, including Rich Text Document (.rtf, both with and without attachments), Web Page (.html), Web Archive Document, Open Document Text (.odt), Word 2007 (.docx), Word 2003 (.xml), and Word 97 (.doc). Since we want to save the document for people using the current version of Word, we’ll save this in .docx format.
Why would you want to use TextEdit instead of a full-blown word processor? Think of it as a great way to enhance your productivity by getting rid of as many distractions (extraneous features) as possible.
HTML is short for Hypertext Markup Language, the code (along with CSS) that describes how a web page should look. HTML codes can change text styles, define tables, make links, insert media, and more. TextEdit is a surprisingly useful way to edit HTML when a web designer simply wants to create a simple page as a placeholder or needs to correct one piece of code.
Now, if you just drag and drop an HTML file (.htm or .html) onto TextEdit, it’s going to open it in Rich Text format — in other words, it looks like the web page, with text styling and table formatting. To actually see and edit the HTML code, we need to open the document from within TextEdit and tell the app to ignore the HTML commands it sees.
This is easy to do: Select File > Open… from the menu bar, then click the Options button in the Open dialog. As you can see in the image above, there’s a checkbox titled “Ignore rich text commands” — check the box, and when you open an HTML file you’ll see the code instead of a web page without pictures.
If you decide to use TextEdit as your “go-to” HTML editor, you’re not going to want to check that box every time. No problem, as there’s a way to get TextEdit to open those files as code every time. In TextEdit > Preferences, click on the Open and Save tab, then click the checkbox next to “Display HTML files as HTML code…” Now if you drag and drop an HTML file onto TextEdit or open it from File > Open, it is opened as code.
Now, one thing that you may need in TextEdit is a way to go to a particular line number. Let’s say you have an error on line 56 of your HTML code; there are no line numbers visible in the text! Just go to Edit > Find > Select Line (or press Command (⌘) – L, then type in the line number. The line of text is highlighted.
Add Author and Copyright Info
If you are going to be sending out a small rich text file as documentation for a Mac app you’ve written (or any other reason), and you want to make sure that the recipients of the file know who wrote it and whether or not the file is copyrighted, that information can be added in Preferences.
From the menu bar, select TextEdit > Preferences, and make sure you’re looking at the New Document tab. About halfway down the preference pane is a section titled “Properties” where Author, Organization, and Copyright information can be entered (see image below).
As noted on the preferences pane, document properties are saved only with rich text (.rtf) files, not with plain text (.txt) files. The author, organization and copyright information shows up in Spotlight searches, providing another way to find files you’ve written.
There are a number of other useful settings here, including grammar and spelling checking, smart quotes and dashes, and so on. You can even select a default font and size for both plain text and rich text files.
Like Pages and Microsoft Word, TextEdit allows users to enter media like images, audio files, and even videos to the documents. TextEdit does this by using a special file format called .rtfd (rich text format dictionary, also known as rich text with attachments).
Starting with a blank Rich Text File and some text, we can just drag any image into the page. The first time this is done, the following dialog appears:
Click Convert to have the document directly converted to the .rtfd format, or click Duplicate to ensure that your original document remains the same.
Adding a sound file demonstrates one of the problems with trying to get “too fancy” when using TextEdit. I recorded a small audio file and then dragged it to the sample document. Doing so displayed a thin highlighted line on the document. The embeddable audio player is taller than a default line of text, so by changing the “text size” to 72 points, the play arrow on the player appeared.
Next, a test of embedding a video file. Note that you’ll want to keep these as small as possible, both in file size and in width — I chose to export a video in 640 x 480 pixel resolution (480p) in order for it to fit within the width of the document.
When you drag and drop a video to your .rtfd file, you’ll be asked if you want to embed the information in the file or simply create a link to the video file. Since I knew my five-second video was only 1.5MB in size, I chose to embed the video into the .rtfd file.
Here there was no need to increase the text size to see the player, as the default player was visible immediately (see image below):
Saving the .rtfd file is simple: just select File > Save… and give the document a name, and it is automatically saved in .rtfd format. These documents can be viewed by anyone with TextEdit, Pages (Mac, iPhone and iPad), and a few other apps, but not by Microsoft Word.
Want your TextEdit file to have clickable links in it? That’s easy to do.
Enter the text that you want someone to click on, highlight it, and then select Edit > Add Link… or use the keyboard shortcut Command (⌘) – K. Enter the URL (link) to the website you with to have someone visit, and click OK. The linked text is underlined to indicate that it is a clickable link.
Other links can be embedded as well, such as a mailto: link that automatically opens the default email application and can set a number of mail attributes, or even a file: link. The file links can be clicked to display a file on a Mac; for example, a link to
file:///System/Applications/Calculator.app opens the Applications folder and highlights the Calculator app when it is clicked.
Lists and Tables
The two last features of TextEdit we’ll talk about today are its ability to create lists and tables. Now, both of these features are available in another favorite Mac app, Notes. Depending on your personal preference, you might decide that TextEdit is your text editor of choice and that you don’t need the Notes syncing capability, so we’ll show you how these two features work in TextEdit.
Let’s look at Lists first. To create a list, you can either type in your list of items and then add the bullets or numbering later, or you can have them added as you’re typing.
If we just type a list of items on successive lines in our document and want to add numbers or bullets, we can do that by highlighting the list, then selecting Format > List from the menu bar or by clicking the “List Bullets and Numbering” button in the toolbar (it’s also displayed on the Touch Bar of MacBooks). Doing this displays the following dialog:
With this dialog, you can do an amazing amount of list formatting. Let’s say that you want your list to show up looking like this:
Number 1 –
Number 2 –
To do this, you would use a prefix — the word Number followed by a space — then select 1 2 3… numbering so that each item in the list is numbered sequentially, and finally, add a space, a dash, and another space. Now, as we add items to the list, they’re automatically given a custom list header:
There are a variety of numbering and lettering schemes in the dialog, including Greek and Cyrillic letters, a number of Asian languages, and so on.
The “Prepend enclosing list marker” checkbox is there if you need to do nested numbering. What this means is that if the enclosing list marker is 1 followed by a period, the sublist markers would be 1.1, 1.2, etc… To end any list, just press the return key twice.
For tables, select Format > Table… from the menu bar. By default, TextEdit adds a table with three columns and two rows. As with any spreadsheet or table, you click in a cell to add text, then press tab to move to the next cell.
In the table formatting dialog seen above, you can change the number of rows and columns, merge adjoining cells, split a cell into two cells, change the text alignment (both vertically and horizontally), add borders to the cells and change the background color. It’s even possible to nest a table inside a cell – in other words, creating a “sub-table” inside one cell of a table.
TextEdit is one of the hidden gems of macOS, a surprisingly powerful application with a very small footprint. If you’re using an older Mac with limited storage and capabilities, TextEdit can act as a stand-in for both a word processor and text editor.
There are even more functions and features in TextEdit than we’ve covered here. Check out this complete user guide to TextEdit on Apple’s support website.