[←]

Lines and paragraphs

You might think there is nothing you have to learn about something so fundamental as writing in plain text. It is just writing after all. But you will be surprised how much more effective your plain text workflow can become if you understand the fundamentals outlined in the next few lessons.

Characters are everything

The first, and probably the most important, thing to remember about writing in plain text is that everything is a character. We already discussed this in a previous lesson. We saw there how spaces are characters too, which means they matter just like any other letter or number. This includes spaces between words (space bar), spaces at the end of lines (return or enter), spaces between lines (blank lines), spaces at the start of lines (indents), multiple spaces between words or phrases (tab) etc.

The consequence of this is that plain text files are in a sense truly WYSIWYG -- what you put in is reliably what you will get the next time you open that file, including spaces and all.

Sentences, lines and paragraphs

One step above characters are words. You identify these because they have spaces on either side of them. Words in plain text files are no different. However, things get a bit more complicated -- are arguably more interesting -- when you talk aout sentences and paragraphs.

In traditional prose we count lines and sentences as follows:

This is the first sentence and it is on the first line. This is the second sentence ‘wrapping’ onto the second, third or fourth line, depending on what device you are reading this on. Finally, this entire thing is a paragraph made up of three sentences and four to seven lines.

The reason for this is that traditional prose is written on a pretend sheet of paper. Think of your favourite word processor. It has a fixed width and a screen that resembles a crisp white A4 or US letter paper. The reason for this is that your text was, more often than not, destined to be printed.

Plain text is a bit more powerful. Sure, you can print it too, but you can also turn it into a webpage, or lay it out like a book, or make it a business card, or turn it into an e-book, or into a bunch of presentation slides. Because it can be so many things, it does not make sense to have plain text look like any single one of those things.

Plain text abstracts the content away from the form. It reduces the content from words on an A4 sheet of paper to just words.

A consequence of this is that the text becomes more predictable in its layout but also a bit unusual if you are not used to it; and some concepts conflate in their meaning, such as lines and paragraphs. Here is the paragraph from earlier in plain text. You might have to scroll right to see all of it.

This is the first sentence and it is on the first line. This is the second sentence ‘wrapping’ onto the second, third or fourth line, depending on what device you are reading this on. Finally, this is a paragraph made up of three sentences and anywhere from five to nine lines.

This is still a set of the same three sentences, but it is now just one line. And that one line is also one paragraph.

Using line breaks

Let us now look at things from a slightly different perspective. Here is a line, and a sentence, in plain text. It would be a line, and a sentence, if you typed it up in a word processor like Microsoft Word or Google Docs too.

This is a plain text sentence.

Of course you can now add a space and continue that sentence. This too is no different from any word processor.

This is a plain text sentence. And this is another.

Or you can break it down:

This is a plain text sentence.
And this is another.

On a traditional word processor as soon as you hit the return key you would have turned this into two paragraphs. In plain text, it is two lines instead -- and still the same paragraph.

To make a paragraph in plain text you would need to leave a blank line in-between like this:

This is a plain text sentence.
And this is another.

This sentence has started a new paragraph
because it has a blank line above it,
and I can write this sentence across
as many lines as I want it to.

Notice how the second paragraph is in fact one sentence and yet it stretches across three lines. On a word processor doing this would have left you with six paragraphs.

Why is this helpful?

When we write prose, we tend to break paragraphs by idea, theme, logical break or style. But you can do something more in a plain text file: you can break a line for your convenience. This could be because it helps you read more easily, because breaking it up a certain way helps you think better, because complex sentences seen as clauses make more sense, because you want to see how long your sentences are when you write to make sure they are not getting out of hand, or for any number of other reasons.

You will likely figure out your own reasons for doing this as you keep typing plain text. This cannot be taught so much as gleaned from experience.

In plain text you write in a manner that makes sense to you. If you feel like every new line is, in spirit, a new paragraph, you can do just that. If seeing a blank line, as in our example above, helps you to picture a new paragraph better you can practise that instead while still keeping each sentence on a line by itself. If you want three blank lines between paragraphs, go ahead!

To understand why and how to break lines in a plain text file, read our guide to line discipline.

TIP In plain text, having more lines can be a good thing. When you want to search or browse through versions of your document to spot differences, computers can quickly show you the tiniest of changes. Computers do this line-by-line. So if you have ten lines in a paragraph you can quickly go to the exact part of a sentence within a paragraph to make changes or compare differences. But if your entire paragraph was several sentences all in one line, you can only go so far as figuring out that the thing you need to change is somewhere in that paragraph.


This document is part of the plain text lesson plan. If you are ready, you can proceed to the next lesson.