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?
-
1It's spelt – (and —) and yes it does work– Matt E. ЭлленMay 11, 2016 at 16:42
-
Perfect, thank you. @MattE.Эллен, is there a SO or EL&U page that has other symbols?– rajah9May 11, 2016 at 16:46
-
1There'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.– Matt E. ЭлленMay 11, 2016 at 16:53
-
Any workarounds for using them in comments ?– k1eranMay 11, 2016 at 23:54
-
3I 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.– chosterMay 12, 2016 at 3:24
2 Answers
Stack Exchange supports the html character sequences for various dashs and hyphens:
- ­ — Word 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
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