How are people showing keyboard "glyphs" on Super User? I looked at the Markdown help page and it didn't show anything regarding this.
Here is an example. (question has been deleted since this was asked, so an archive link is provided instead):
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.
Sign up to join this communityHow are people showing keyboard "glyphs" on Super User? I looked at the Markdown help page and it didn't show anything regarding this.
Here is an example. (question has been deleted since this was asked, so an archive link is provided instead):
You need to use the <kbd>
HTML tag:
<kbd>CTRL</kbd>+<kbd>Z</kbd>
becomes CTRL+Z
<kbd><kbd>CTRL</kbd>+<kbd>Z</kbd></kbd>
... But yes, that is ugly here! (And yes, it's just a recommendation...)
If you want to reference special keys such as ⌘ Command, you can use these special characters:
Mac:
<kbd>⌥ Option</kbd>
<kbd>⌥</kbd>
<kbd>⌃ Control</kbd>
<kbd>⌃</kbd>
<kbd>⇧ Shift</kbd>
<kbd>⇧</kbd>
<kbd>⌘ Command</kbd>
<kbd>⌘</kbd>
<kbd>⎋ Escape</kbd>
<kbd>⎋</kbd>
<kbd>⇪ Caps lock</kbd>
<kbd>⇪</kbd>
<kbd>⇥ Tab</kbd>
<kbd>⇥</kbd>
<kbd>⏏︎ Eject</kbd>
<kbd>⏏︎</kbd>
<kbd>⌫ Delete</kbd>
<kbd>⌫</kbd>
You can always access these symbols via Character Viewer on a Mac:
<kbd> elements are way intrusive For great humor.
Additionally, if you have formatting questions like that, you can look at the source of the post to see what markup was used (by clicking edit).
In the new Stacks Editor, the shortcut Keyboard Ctrl-' is introduced.
Reference: https://github.com/StackExchange/Stacks-Editor/issues/51
Using the new shortcut you are able to create the Keyboard Glyphs in the editor.
GIF for reference: