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):
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):
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...)
kbd
tags.
Commented
Apr 26, 2022 at 9:05
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: