What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

If I type in Hello and then highlight it and press ctrl+i it will change it to *hello* (thus making it look like this hello).

Is there a ctrl+i or ctrl+b equivalent to make something code?

I want to type in MyClass and select it and press a magic key combo and then have it be `MyClass` (so it will look like this MyClass).

share|improve this question

2 Answers 2

up vote 4 down vote accepted

They have co-opted the control-k for that (instead of letting it mean kill like it does in a proper editor). Which you could learn by reading the tool tip for the 010101010101 button.

share|improve this answer
OK, I feel dumb that it was on the tool tip. – Vaccano Sep 21 '10 at 19:45
@Vaccano: Don't. I only noticed on the tooltip when I was answering this question. I know it because it conflicts with my emacs reflexes. – dmckee Sep 21 '10 at 19:54
that last sentence does come off as pretty harsh. Also, "the 010101010101 button"? I only get a "101 / 010" button! Lucky stiff.... – Pops Sep 21 '10 at 20:15
::cast about desperately for some way to excuse rudeness or at least divert attention:: – dmckee Sep 21 '10 at 21:01

There is more than one way to do it

This also works:

Ctrl + +

(Numeric keypad, the add key.)

Tested with Firefox and Google Chrome.

share|improve this answer
ctrl + shift + = (where shift + = is equivalent to +) also works (so no requirement for a numpad) – Mark Elliot Sep 21 '10 at 22:47

You must log in to answer this question.

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