I like how tags are cleverly displayed in gray boxes in this question, among others: https://meta.stackexchange.com/questions/6119/retag-request-opensource-open-source
What's the markdown syntax for this?
I like how tags are cleverly displayed in gray boxes in this question, among others: https://meta.stackexchange.com/questions/6119/retag-request-opensource-open-source
What's the markdown syntax for this?
That would be the <kbd>
tag:
<kbd>hello, world</kbd>
becomes
hello, world
It's used mainly to demonstrate keys that the reader is supposed to press, like ctrl+t, etc.
Though <kbd>
is an HTML tag, StackOverflow applies some CSS to make it look like a real button:
kbd {
background:#EEEEEE none repeat scroll 0 0;
border-color:#CCCCCC #AAAAAA #888888 #BBBBBB;
border-style:solid;
border-width:1px 3px 3px 1px;
color:#000000;
padding:2px 4px;
white-space:nowrap;
}
Note that, if talking about actual tags, it's better to use the new [meta-tag:tags]
-> tags syntax; see Is there some markup to post tags? or the formatting help for details.