5
$\begingroup$

When I posted an answer for someones question:

https://blender.stackexchange.com/posts/16530/revisions

It got edited and these key box's were added.
They look nifty, but because I'm new, I don't know how to add them.

Could someone clarify please?

$\endgroup$
6
  • 2
    $\begingroup$ I'm not sure what you are asking, your original post was a bit untidy and it was formatted properly by other users. See blender.stackexchange.com/help/editing $\endgroup$
    – iKlsR
    Oct 10, 2014 at 20:47
  • $\begingroup$ I agree whole-heatedly that I was sloppy. If you look in the areas where I had put key notations (ex. 'N') they were replaced by some sort of icon in the edit. how does one use those icons to avoid future 'mistakes'? $\endgroup$
    – ruckus
    Oct 10, 2014 at 20:55
  • $\begingroup$ And with my most recent answer to my own question. How did you do that? Pretty cool. Maybe i just need a course on formatting in this site. $\endgroup$
    – ruckus
    Oct 10, 2014 at 20:59
  • 2
    $\begingroup$ That was done using markdown, when writing a post, look at the top of the edit field to the right and you will see a help button (a gold question mark). See meta.blender.stackexchange.com/questions/250/…. You can also drop by our chatroom and ask for assistance, you will get used to the site in no time. :) $\endgroup$
    – iKlsR
    Oct 10, 2014 at 21:11
  • $\begingroup$ Also here's a quick and basic guide to using markdown and html within SE posts: blender.stackexchange.com/help/formatting. The formatting in question is <kbd>key</kbd>. If you get tired of typing <kbd>, there is a userscript which adds a button to insert them automatically: meta.blender.stackexchange.com/q/388/599 $\endgroup$
    – gandalf3
    Oct 10, 2014 at 23:09
  • $\begingroup$ cool. thankyou. $\endgroup$
    – ruckus
    Oct 11, 2014 at 1:35

2 Answers 2

4
$\begingroup$

Those are simply kbd tags, defined in the html spec, and styled as such on SE.

Here is an example usage:

When you really messed up, press AA then DeleteEnter.

This is how the sage advice looks in code view:
When you really messed up, press <kbd>A</kbd><kbd>A</kbd> then <kbd>Delete</kbd><kbd>Enter</kbd>.

For more detail on how to format the kbd tags see this answer.

There are also user created scripts to make adding the <kbd> tags easier.

$\endgroup$
2
$\begingroup$

It's sooo annoying to type those kbd tags though. If one is on Windows, one can use a simple AHK script:

#NoEnv 
SendMode Input
#K::
a := Clipboard
send ^c
ClipWait
sleep 100
StringReplace, Clipboard, Clipboard, + , %A_Space%</kbd> + <kbd>%A_Space%, ReplaceAll
StringReplace, Clipboard, Clipboard, -> , %A_Space%</kbd> -> <kbd>%A_Space%, ReplaceAll
StringUpper, Clipboard, Clipboard, T
Clipboard = <kbd>%A_Space%%Clipboard%%A_Space%</kbd>
sleep 100
Send ^v
sleep 200
Clipboard := a
return

So if that AHK script(text file with .ahk exxtension) is in shell:startup(one could copy-paste that to Windows Run menu( Winlogo + R )) folder and starts with Windows, one can simply select some text like "a->ctrl+b" and hit Winlogo + K to get " A -> Ctrl + B "

AHK needs to be installed.

$\endgroup$

You must log in to answer this question.

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