1

I'm able to paste an em-dash character. But I was wondering if there's a way to place an em-dash or an en-dash into an answer? The tag &endash; doesn't work. I could not find them among the whitelisted HTML tags at What HTML tags are allowed on Stack Exchange sites?

5
  • 1
    It's spelt – (and —) and yes it does work May 11, 2016 at 16:42
  • Perfect, thank you. @MattE.Эллен, is there a SO or EL&U page that has other symbols?
    – rajah9
    May 11, 2016 at 16:46
  • 1
    There's no page as far as I'm aware. But, in questions and answers (not comments or chat) you can use any HTML entity reference. May 11, 2016 at 16:53
  • Any workarounds for using them in comments ?
    – k1eran
    May 11, 2016 at 23:54
  • 3
    I find it faster to type codes. On Windows, it's Alt-0150 and Alt-0151 for the en dash and em dash respectively; Alt-0145 through Alt-0148 for the open and close single and double quotes; and so on.
    – choster
    May 12, 2016 at 3:24

2 Answers 2

6

Stack Exchange supports the html character sequences for various dashs and hyphens:

  • ­ — Wo­rd with soft hyphen in it
  • — — Wo—rd with an em-dash in it
  • ‐ — Wo‐rd with a hyphen in it
  • – — Wo–rd with an en-dash in it
3

Thanks for the nudge in the right direction, Matt. Here's a site that has em-dash (use —) and en-dash (use –).

http://symbolcodes.tlt.psu.edu/web/codehtml.html

Also helpful for “André owes me €50.”

Desired                 HTML sequence       numeric keyboard shortcut
em-dash (—)             —                Alt-0151
en-dash (–)             –                Alt-0150
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .