Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Why won't my textedit show .htm documents?

I can't get past page 25 of the Creating a Website Missing Manual. I have a Mac, so I'm using textedit to write codes and open htm files.

When I open the popsicle.htm example file Textedit just turns black. When I try to type in the same code the examples are using to show in my browser all the coding still comes up.

Do I need to change my preferences to a certain setting to make this work? Please help I'm so frustrated!
1 person has
this question
  • Hi Kim,

    I'm sorry for the frustration. TextEdit has some settings that you'll probably need to change to work with HTML files.

    *Go to TextEdit > Preferences > Open and Save
    *Check Ignore rich text commands in HTML files (This will make it so that TextEdit shows your markup itself, instead of the results of your markup.)
    *Uncheck Add ".txt" extension to plain text files (Your HTML files will need to be plain text, but they only need the file extension .htm or .html.)
    *Go to the New Document tab
    *Select Plain text as your Format for new documents
    Here's a blog post that explains some of this.

    Once you've created/edited a file with these settings, you should be able to open it in your browser and have it interpreted correctly.

    Let us know if you still have questions. If you're encountering new problems, feel free to send us a screenshot.


    Rachel James
    O'Reilly Media, Inc.
  • (some HTML allowed)
    How does this make you feel?
    Add Image

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Thank you. Definitely a frustration to a newbie. btw TextEdit preferences opens in the New Document tab. Why not instruct the user to "Select Plain text..." first instead of going to the Open and Save tab? I found that a bit confusing
  • (some HTML allowed)
    How does this make you feel?
    Add Image

    e.g. happy, confident, thankful, excited sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly