2

I have a Cherry Stream XT Corded keyboard (http://www.cherrycorp.com/english/keyboards/Office/G85-23100/index.htm) with the Azerty(Belgium-point) keyboard layout.

When I use my ' key on my keyboard to indicate the start and end of a code snippet 'like this', it does not register as a code snippet. I need to use `, which is an alt gr key on my keyboard. This makes entering code in a comment far trickier, especially when I didn't know about the alt gr key yet and manually copy-pasted the symbol from the help tooltip...

Is there a specific reason why this key is used as the in-line code key, instead of the other key I mentioned?

5
  • 1
    You can select the text you want to mark up as code and hit the {} button in the toolbar. Commented Sep 16, 2014 at 11:57
  • 2
    @MartijnPieters Not when writing a comment.
    – Nzall
    Commented Sep 16, 2014 at 11:59
  • 8
    No, not for comments. Markdown was envisioned as a plain-text-with-markup format, which is why commonly used textual characters are not used for markup. ' is used extremely often in plain text, so it's not a candidate for code markup. Commented Sep 16, 2014 at 12:01
  • 1
    So your keyboard looks like this? (Where the characters marked red are green on yours.) About the only positive thing I can say about that layout (I'm Dutch but have exclusively used the US layout for 3 decades) is: hey, it has a µ key!
    – Jongware
    Commented Sep 16, 2014 at 12:41
  • 2
    @Jongware Funnily enough, that's the only key that I never press on purpose (but often accidentally while pressing enter).µ
    – Nzall
    Commented Sep 16, 2014 at 12:44

2 Answers 2

10

The ` was used as it\'s a character that isn\'t normally used in text.
' is, obviously.

Imagine the hassle of having to escape every single quote when you\'re writing an answer.

If anything, we should use .. I mean, who uses punctuation nowadays?

(Escapes are intentional)

1
  • 4
    "Isn\'t normally used in text..." - the second half is that it's still a key on most keyboards. It would not make much sense to use any random rare character such as .
    – Jongware
    Commented Sep 16, 2014 at 12:46
5

Single quotes, also known as apostrophes, are common punctuation marks in English and a common symbol used in most languages to represent chars or strings. Grave accents, not so much.

Granted you could use a fancy single quote to represent an apostrophe but there is no key on a standard keyboard for that character. If Markdown used single quotes for code formatting, it would be extremely difficult to type anything that requires an apostrophe.

You must log in to answer this question.

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