Creating Text Files in Mac OS X (Apple)

Apple computers come with a simple editor called TextEdit.  If TextEdit isn’t on your Dock, you can find it using LaunchPad.

  1. Click on the LaunchPad icon on your Dock to view an array of all the applications on your computer.
    Launchpad Icon
  2. If you don’t immediately see TextEdit, you can find it by typing it into the search field.
  3. Click on the TextEdit icon
    If TextEdit displays a New Document window, click the generic New Document icon.  Otherwise, open the File menu and select New.
  4. By default, this generic new document is a Rich-Text Format (rtf) document.  Remember that we want a plain text file.
    Open the Format menu and select Make Plain Text.  Alternatively, as the menu shortcut shows, you can depress the Shit, Command, and T keys at the same time to change to plain text.Format Menu in TextEdit
  5. Enter some text, presumably your HTML or program code.
    Save the document using the File menu Save option or Command-S.
    Enter your filename, choose a location, and click Save.  You can uncheck the “If no extension is provided…” option so TextEdit won’t ask you if you’re sure you want the extension that you type (e.g., .html, .css, .js, .c, .java) rather than “.txt”.TextEdit Save Dialog
  • [Optional] If you want TextEdit to start all new documents as Plain text, open the TextEdit menu and select Preferences (or use the Command-, (comma) key combination).  Under the “New Document” tab, select the “Plain text” radio button.  Close the window.
  • [Optional] In the Preferences window (see previous step), turn off all the options.  Otherwise, they will corrupt your files by adding stylized non-ascii quotation marks or spell-check your code.