TextEdit User Guide
You code for the web. You demand a fast, clean, and powerful text editor.Pixel-perfect preview.A built-in way to open and manage your local and remote files.And maybe a dash of SSH.
You can use TextEdit to edit or display HTML documents as you’d see them in a browser (images may not appear), or in code-editing mode.
Note: By default, curly quotes and em dashes are substituted for straight quotes and hyphens when editing HTML as formatted text. (Code-editing mode uses straight quotes and hyphens.) To learn how to change this preference, see New Document options.
Create an HTML file
- Espresso is a gorgeous Mac-only code editor that’s powerful and smooth, like the caffeinated beverage it’s named after. This text editor has been credited with helping its users edit CSS in less.
- The leading professional HTML and text editor for the Mac, with high-performance features for editing, searching, and manipulation of text. Starting Price: $49.99 View Software Get Quote. A true cross-platform, multi-language code editor, with.
In the TextEdit app on your Mac, choose File > New, then choose Format > Make Plain Text.
Enter the HTML code.
Choose File > Save, type a name followed by the extension .html (for example, enter index.html), then click Save.
When prompted about the extension to use, click “Use .html.”
View an HTML document
In the TextEdit app on your Mac, choose File > Open, then select the document.
Click Options at the bottom of the TextEdit dialog, then select “Ignore rich text commands.”
Click Open.
Always open HTML files in code-editing mode
In the TextEdit app on your Mac, choose TextEdit > Preferences, then click Open and Save.
Select “Display HTML files as HTML code instead of formatted text.”
Change how HTML files are saved
Set preferences that affect how HTML files are saved in TextEdit.
In the TextEdit app on your Mac, choose TextEdit > Preferences, then click Open and Save.
Below HTML Saving Options, choose a document type, a style setting for CSS, and an encoding.
Select “Preserve white space” to include code that preserves blank areas in documents.
If you open an HTML file and don’t see the code, TextEdit is displaying the file the same way a browser would (as formatted text).
The Plain-Text Editor for macOS
It's free!
light-weight, neat, yet powerful
Why you should choose CotEditor?
Just for macOS
CotEditor is exactly made for macOS. It looks and behaves just as macOS applications should.
Rapid Launch
CotEditor launches so quick that you can write your text immediately when you want to.
Open Source
CotEditor is developed as an open-source project that allows anyone to contribute.
features
Syntax Highlighting
Colorize more than 50 pre-installed major languages like HTML, PHP, Python, Ruby or Markdown. You can also create your own settings.
Powerful Find & Replace
Super powerful find and replace using the ICU regular expression engine.
Setting via Click
There are no complex configuration files that require geek knowledge. You can access all your settings including syntax definitions and themes from a standard preferences window.
Auto Backup
You don't need to lose your unsaved data anymore. CotEditor backups your documents automatically while editing.
Outline Menu
Extract specified lines with the predefined syntax, and you can jump to the corresponding line.
Split Editor
Split a window into multiple panes to see different parts of your document at the same time.
Basic Text Editor For Mac
Character Inspector
Inspect Unicode character data of each selected character in your document and display them in a popover.
Scriptable
Make your own macro in your favorite language, whether it is Python, Ruby, Perl, PHP, UNIX shell, AppleScript or JavaScript.
Incompatible Characters
Check and list-up the characters in your document that cannot convert into the desired encoding.
CJK Language Friendly
Estimate various file encodings accurately, toggle to vertical text mode and keep its line height correctly.
We welcome your feedback ♡
Please don't hesitate to report any bugs or feature requests to our issue tracker.