TextEdit
It replaces the text editor of previous Macintosh operating systems, SimpleText. TextEdit reads and
writes documents in Rich Text Format as well as ASCII and HTML, can open (but not edit) old SimpleText files. It also has access to the operating system's built-in spell-checking service.
OS X, as a Unix-based operating system also includes vi and pico as well as other terminal-based text editors.
TextEdit is a text editor for Mac OS X, which is included in the standard distribution.