Fix: TextEdit Open Html as Plain Text Code


You may have noticed that when you open a .html file inside TextEdit on the Mac, it is displayed as a formatted text file instead of the HTML code.

If you want the file to be displayed in plain HTML code, you have to do the following changes in the setting of the TextEdit application.

  1. Open TextEdit Applciation.
  2. Now go to Menu: TextEdit -> Settings.. (Preferences if on a version lower than macOS 13 Ventura)
  3. Now go to the Open and Save,
  4. Select the checkbox: Display HTML files as HTML code instead of formatted text
    TextEdit - Display HTML files as HTML code instead of formatted text
  5. Close settings.

Now open an HTML file in TextEdit and it should be displayed as HTML code.

Html as plain code
Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org










Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap