Wikipedia:How to make dashes



The hyphen-minus (keyboard hyphen), en dash, em dash, and mathematical minus/negative symbols are different. Pressing the - on your keyboard, usually next to the 0 (zero) key, will produce a hyphen-minus. Methods of producing the other characters are described below.

The CharInsert toolbar
To insert a dash or minus sign, use the toolbar below the edit box. Click where you want the character to be inserted, select "Insert" from the pull-down menu, and then:
 * To insert an en dash (–), click on the first character (the shorter dash).
 * To insert an em dash (&mdash;), click on the second character (the longer dash).
 * To insert a minus sign (&minus;), click on the − between the ± and the ×.

Templates or HTML codes

 * For an en dash, type  or –.
 * For a "spaced en dash" (with a non-breaking space before the dash and a regular space after it) type  or.
 * For an em dash, type  or &mdash;.
 * For a minus sign, type &minus;.

Copy and paste
Find an en dash (–), an em dash (&mdash;), or a minus sign (&minus;) already in some text—in this sentence, for example—and paste it where a new one is wanted.

Mac
For Mac (or iOS with an external keyboard) use: Alternatively for Mac:
 * Opt (en dash) or Opt (em dash).
 * Pull down the Input menu and select Show Emoji & Symbols. Then select from  Punctuation.
 * If the Input menu is not displayed, open Language & Region within System Preferences. Then click on Keyboard Preferences... and check Show input menu in menu bar.

Linux
If you have a compose key:
 * Use AltGr- (en dash) or AltGrShift- (em dash).
 * Use Compose--. (en dash) or Compose--- (em dash).

Windows
For Windows on a keyboard with a numeric keypad:
 * Use Alt+0150 (en dash) or Alt+0151 (em dash) using the numeric keypad.

iOS and Android
For iOS (iPhone and iPad) and Android:
 * Hold the - (hyphen) on the on-screen keyboard until a popup appears with choices, including the en dash and em dash.