A dash is one of several kinds of punctuation mark. Dashes are similar to hyphens, but differ from them primarily in length, and serve different functions. The most common versions of the dash are the en dash (–) and the em dash (—).
There are several forms of dash, of which the most common are:
Less common are the two-em dash (⸺) and three-em dash (⸻), both added to Unicode with version 6.1 as U+2E3A and U+2E3B. Windows character codes require that Num Lock be on.
The figure dash (‒) is so named because it is the same width as a digit, at least in fonts with digits of equal width. This is true of most fonts, not only monospaced fonts.
The figure dash is used when a dash must be used within numbers (e.g. phone number 555‒0199). It does not indicate a range, for which the en dash is used; nor does it function as the minus sign, which also uses a separate glyph.
The figure dash is often unavailable; in this case, one may use a hyphen-minus instead. In Unicode, the figure dash is U+2012 (decimal 8210). HTML authors must use the numeric forms ‒
or ‒
to type it unless the file is in Unicode; there is no equivalent character entity. In TeX, the standard fonts have no figure dash; however, the digits normally all have the same width as the en dash, so an en dash can be substituted when using standard TeX fonts.
In computing, a newline, also known as a line break or end-of-line (EOL) marker, is a special character or sequence of characters signifying the end of a line of text. The name comes from the fact that the next character after the newline will appear on a new line—that is, on the next line below the text immediately preceding the newline. The actual codes representing a newline vary across operating systems, which can be a problem when exchanging text files between systems with different newline representations.
There is also some confusion whether newlines terminate or separate lines. If a newline is considered a separator, there will be no newline after the last line of a file. The general convention on most systems is to add a newline even after the last line, i.e. to treat newline as a line terminator. Some programs have problems processing the last line of a file if it is not newline terminated. Conversely, programs that expect newline to be used as a separator will interpret a final newline as starting a new (empty) line.