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
-




Have Questions? Post them here!