Line numbering styles and when to use each
A practical guide to separators, zero padding, starting offsets, and steps so your numbered lists and quoted snippets read cleanly.
Why bake numbers into the text
The line numbers shown in the gutter of a code editor or word processor are interface decoration, not part of the document, so they vanish the moment you copy the text somewhere else. When you need the numbers to travel with the words, they have to be written into the text itself. Common reasons include pointing a reviewer at a specific line, turning a plain list into a ranked one, citing numbered survey answers, and quoting a snippet in a chat where the recipient has no shared line count to refer back to.
Choosing a separator
The separator is the small piece of punctuation that sits between the number and the text, and it sets the tone of the result. A period and space reads like an ordinary ordered list, a colon suits labelled entries, and a closing parenthesis mimics the outline style used in legal and academic documents. The spaced hyphen is easy to scan in prose, while the tab option lines the numbers up as their own column, which is ideal when you plan to paste the result into a spreadsheet. The plain space keeps things minimal when the number alone is enough.
Aligning numbers with padding
Once a list passes nine items the numbers stop being the same width, and in a monospaced block that ragged left edge is distracting. Turning on padding fixes this by measuring the longest number and filling the shorter ones on the left. With a visible separator the fill character is a zero, so a run from 8 to 11 becomes 08, 09, 10, 11 and every separator lines up in the same column. When the separator is a plain space the fill is a space instead, which keeps the text flush without introducing leading zeros you did not ask for.
Starting offset and step
The start value lets the numbering match an existing document rather than always beginning at one. Set it to 0 for zero-based references, or to the next number after a previous block so two pasted sections read as one continuous list. The step controls the interval, so counting by fives or tens is a single change rather than manual editing. Pair a custom start and step with the Skip blank lines option and you can keep paragraphs visually separated while the numbers stay perfectly sequential.