TextEdit Icon

If you can’t view the code in an HTML file

If you open an HTML file and don’t see the HTML code, TextEdit is displaying the file in the same way a browser would. You can choose to display the file’s HTML code instead.

To display the code in an HTML file:

  1. Choose File > Open.

  2. Select “Ignore rich text commands.”

  3. Locate the file and click Open.

To always view the code in HTML files, choose TextEdit > Preferences, click “Open and Save,” and then select “Ignore rich text commands in HTML files” below “When Opening a File.”


Related Topics

HTML

opening documents