What is plain text?
Plain text is exactly as the term says: nothing but text. You might then ask what the difference is between a plain text document and a document made in Microsoft Word or Apple Pages or LibreOffice Writer or Google Docs or any other word processor.
The simple answer is formatting. A plain text file is literally only text; it has nothing in bold or italics, no variations in font sizes, no colours or images, nothing you might consider to be design. You might call it no style, all substance.
TIP If you are going to follow these lessons with a text editor by your side, we suggest using something with no bells and whistles -- especially if you are new to plain text. This often means using whatever came with your operating system, i.e. TextEdit on macOS, Notepad on Windows, gedit or Text Editor or KWrite or Kate or Xed or something else depending on your Linux distro. Think about more capable apps later on after you have got more comfortable with the basic ones.
Markup
You can conduct a simple experiment to see how the same piece of text saved as both a plain text file and a formatted text file can end up with file sizes as much as ten times larger simply due to the formatting.
Clearly formatting has its uses. You need headings to structure a lengthy document or book, you need bold and italics to emphasise or draw readers’ attention and so on. There are ways to accomplish this using ‘markup’ -- we will discuss this in a later lesson. For now, just know that most essential formatting can be signified in plain text too. We just do not resort to saving a file with lot of baggage to accomplish this.
Characters that byte
We will briefly discuss the computer’s perspective of all this. This section is not essential unless you are curious, so skip to the next heading if you like.
Plain text talks to the computer more directly than formatted text -- also called ‘rich text’ -- does, because plain text is just a bunch of ‘characters’. Things like a or é or ¿ are all characters, and this is obvious. But so are and for that matter. If you see blanks there, that is by design: the first is a ‘tab’ character and the second is a ‘space’.
So plain text is well and truly full of characters. The letters a--z are characters just like the numbers 0--9 or the invisible characters tabs, spaces and carriage returns (the ‘Enter’ key that used to ‘return’ a typewriter carriage back to its first position on the next line).
A computer stores these as ‘bytes’, giving each of them a number also called a code. One universally accepted standard for moving between characters and their respective codes is called UTF-8. We do not have to bother with any of this, though. Just know that these characters are the most advanced entities computers know and the most basic entities humans know. Plain text is therefore where we meet the computer as closely as possible.
Usage
So why do more people not use plain text? For starters, people’s introduction to computers nowadays is no longer through plain text like it used to be. Most people start off with a word processor, formating and designing around their text, or online where most text is already carefully designed. All this makes rich text the most fundamental way of interacting with computers for most people. Consequently, it becomes harder to move ‘back’ to plain text because people incorrectly perceive it as less capable or useful.
Nevertheless, as you shall see over these lessons, the benefits of plain text far outweigh those of formatted text for plenty of -- but not all -- use cases. We say ‘not all’ because we know you do need to design documents every once in a while. In such cases, plain text can quickly get out of your way and even help you crucially separate content from design. We will see more of this too in later lessons.
For now, remember that plain text is so fundamental to a computer that you can use it everywhere. Indeed, when in doubt, just use plain text. And if you are wondering whether plain text and plaintext are two different things, they are.
This document is part of the plain text lesson plan. If you are ready, you can proceed to the next lesson.