10

I find myself citing the C standard very frequently in answers to questions about C. If I am referring to a particular section of the standard, I can use the HTML escape sequence § to generate a § symbol, so I can say things like:

According to § 1.2.3p4 of the C Standard, x does y

However, this does not work in comments (the unescaped § remains in the comment), though I find myself wanting to cite the standard in comments once in a while as well. While I am able to use Alt+0167 to insert the symbol, is there any reason for this difference in behavior, other than that the site developers simply forgot to add it?

8
  • 11
    MSE duplicate: Allow HTML entities in comments
    – user247702
    Feb 27, 2019 at 17:01
  • 3
    Easy workaround: switch to an Azerty keyboard en.wikipedia.org/wiki/AZERTY#/media/…
    – blagae
    Feb 28, 2019 at 10:07
  • 6
    § - it's utf8, surely you can just copy/pasta whatever character you want into the comment?
    – CD001
    Feb 28, 2019 at 10:29
  • 6
    Comments don't support <em>any</em> html markup, it's not just entity escapes.
    – Bergi
    Feb 28, 2019 at 10:54
  • 1
    I think this should be the other way around: why can I write HTML entities in posts? What happens if I want to write &sect; in a post? 😄 Mar 1, 2019 at 14:25
  • 4
    @ThomasEdwards You will have to use &amp;sect; 😄
    – lalo
    Mar 1, 2019 at 14:29
  • 4
    HTML entities are extremely convenient on Windows and Linux. Macs have the lovely meta-key combinations for commonly used special characters, but you don’t get this elsewhere. There are the Alt-numpad shortcuts, but they aren’t mnemonic so who can remember them? Besides not all keyboards have number pads, especially notebooks. I use &mdash, &ndash, &nbsp, and &hellip all the time. I can also see the same common use for &sect as you. I would definitely be in favor of adding support for this.
    – Cody Gray Mod
    Mar 1, 2019 at 21:04
  • @CodyGray: For Linux, enable a compose key to get Compose - - - = mdash, Compose - - . = ndash, Compose Space Space = nbsp, and Compose . . = hellip. (§ is Compose S O).
    – Ry- Mod
    Mar 2, 2019 at 12:09

0

You must log in to answer this question.

Browse other questions tagged .