Skip to content

Comment on I don't write code anymore – I sculpt itparent

Comments

i was always curious how these em dashes were written? like in my keyboard i dont see the symbol, is there any shortcut?

Some markdown-like static blog generators just replace -- with emdash.

I used one such in the past, written in PHP by someone who was keen on proper typography.

On macOS, option plus hyphen gives an em-dash. Also if you're on macOS you should try some other keyboard keys too with option.

I believe em-dash are made using shift-option-dash. AFAIK option-dash gives an en-dash.

Yeah that's right, thanks.

On Linux, it’s [Compose]--- (or [Compose]--. for an en dash)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.