Skip to content

Instantly share code, notes, and snippets.

@Integralist
Last active February 3, 2026 12:42
Show Gist options
  • Select an option

  • Save Integralist/18a9f1ba300dcb17df1a01d8c8704242 to your computer and use it in GitHub Desktop.

Select an option

Save Integralist/18a9f1ba300dcb17df1a01d8c8704242 to your computer and use it in GitHub Desktop.
Hyphen vs En Dash vs Em Dash

Hyphen (-)

Connects words, parts of words, or numbers.

En Dash (–)

To indicate ranges or relationships.

Option (⌥) + -

Em Dash (—)

To indicate a pause, interruption, or emphasis.

Option (⌥) + Shift (⇧) + -

Examples

Hyphen: word-word
En dash: 1987–1992
Em dash: He said it—then walked away.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment