108

Possible Duplicate:
Keyboard Glyphs

I got an answer with some cool keystroke formatting, but I don't see how to do it on the markdown reference, or the more detailed markdown reference -- maybe I just missed it. I don't have enough rep on superuser to have access to an edit option, so I can't see the source for the answer.

How do I make those cool key stroke combinations in markdown?

2
  • 6
    Try hitting down, down-forward, forward and then hitting Enter.
    – Grace Note StaffMod
    Commented Nov 16, 2010 at 22:27
  • 7
    Speaking seriously, it's <kbd>Key</kbd>, as detailed here. See also this request suggesting to add this into the markdown reference.
    – Grace Note StaffMod
    Commented Nov 16, 2010 at 22:28

2 Answers 2

138
<kbd>shift</kbd> + <kbd>command</kbd> + <kbd>3</kbd>

outputs:

shift+command+3

6
  • 12
    <kbd>kbd</kbd> should work in comments as well.
    – rid
    Commented Nov 6, 2011 at 3:12
  • 4
    @rid It seems not to?
    – Mark Amery
    Commented Oct 3, 2013 at 13:05
  • 1
    <kbd>check</kbd> Commented Jun 17, 2015 at 22:50
  • 2
    Nope, <kbd> in comments doesn't do anything. Commented Jun 17, 2015 at 22:50
  • 1
    This should really be in the editing help.
    – Raphael
    Commented Dec 21, 2016 at 8:52
  • 1
    Works in Github markdown as well.
    – Dominik
    Commented Apr 9, 2018 at 12:41
7

As a note, you don't need edit privileges to view the source of an answer or question.

Simply go to the revisions of an answer/question which in this case is:

https://superuser.com/posts/211610/revisions

([SITE]/POSTS/[ID]/REVISIONS)

then click view source and it will display the actual source of the answer/question:

<kbd>shift</kbd>+<kbd>command</kbd>+<kbd>3</kbd> will work if you have escaped your VirtualBox and places the screen shot on your Mac's desktop. You could also use or <kbd>shift</kbd>+<kbd>command</kbd>+<kbd>4</kbd> which gives you a cross-hair to select the area you want to capture.

1
  • 2
    Only works when you have the access right to edit a answer.
    – powtac
    Commented Jul 8, 2011 at 0:09

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