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.
- Open TextEdit Applciation.
- Now go to Menu: TextEdit -> Settings.. (Preferences if on a version lower than macOS 13 Ventura)
- Now go to the Open and Save,
- Select the checkbox: Display HTML files as HTML code instead of formatted text
- Close settings.
Now open an HTML file in TextEdit and it should be displayed as HTML code.

Have Questions? Post them here!
- How to find path of file on Mac Terminal
- How to disable Siri on Mac Monterey
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- Select Line Number TextEdit on Mac
- Go to Specific file path using Mac Finder
- How to find Java HOME in Mac Terminal
- bash: command not found error [macOS Terminal Linux, Unix or Windows]
- Must Know Homebrew Commands for Mac/Linux Users
- How to Insert an Inverted Question Mark on Mac ¿
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- How to make macOS Terminal window Transparent (or Opaque)
- How to check of Updates on Microsoft Edge Browser on Mac (macOS)
- Limit scrollback rows in macOS Terminal
- How to identify installed Java (JDK) Version on macOS
- Keyboard Shortcut to delete a file on a Mac [Macbook]
- Open Docker from Terminal Command on Mac
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to take a screenshot on a Mac - updated for Ventura 13 [updated 2023]
- ls: .: Operation not permitted - Mac Terminal ZSH Error
- How to remove username from Mac Menu Bar?
- macOS Ventura XCode Command Line Tools Installation
- Where is .zshrc file located in macOS
- How to Show Path of Files or App in Mac Spotlight Search
- How to enable root user on Mac Terminal
- Install Java 17 (LTS) JDK on ARM based M1/M2 Mac Natively
- Python Sleep Function/Method Code Example - Python
- Java 8: Steam map with Code Examples - Java
- How to Merge Branch into Master Branch - Git
- Advanced ways to set Custom Settings for a Website on Safari for Mac - MacOS
- fix macOS: The digital signature on the update is missing or invalid. Ventura - MacOS
- Show Desktop Keyboard Shortcut on Mac - MacOS
- Add Line Number before each line in Notepad++ using Column Editor - NotepadPlusPlus
- Android : Class file collision: A resource exists with a different case - Android