Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rmeekers/bd84b0192db509b9a44e6f9fa9eef0aa to your computer and use it in GitHub Desktop.
Save rmeekers/bd84b0192db509b9a44e6f9fa9eef0aa to your computer and use it in GitHub Desktop.
What's the difference between straight and curly quotes?

Straight quotes are the generic vertical quotation marks which are inserted via the quotes button on a keyboard. There are two variants:

  1. the straight single quote (') and 2 .the straight double quote (").

Curly quotes are the quotation marks used in good typography. There are two sets of curly quote characters:

  1. Single quotes: the opening single quote (‘) and the closing single quote (’)
  2. Double quotes: the opening double quote (“) and the closing double quote (”).

How to use these quotes in a text editor?

Windows Mac HTML
' straight single quote ' ' '
" straight double quote " " "
opening single quote alt 0145 option + ] ‘
closing single quote alt 0146 option + shift + ] ’
opening double quote alt 0147 option + “
closing double quote alt 0148 option + shift + ”

Windows

To use the alt codes, hold down the alt key and type the four-digit character code on your numeric keypad (num lock must be activated).

Mac

Where multiple keys are listed, press them simultaneously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment