So let's say this is a question on SO, and I'm asking something about the String class. You'll notice that in the previous sentence "String" has the normal font, I'd like it to have the same font as it would if it were in a code block.

I've seen other posts do this, so I know it's possible.


You can use a backtick '`' to achieve this effect.

This String is in code font!


This `String` is in code font!

The backtick is below the tilde on my keyboard.

  • 3
    cool thanks a lot! – user136507 Sep 28 '09 at 17:48

You must log in to answer this question.

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