0

Currently I use Ctrl+K keys for code formatting. Is there any other elegant style for Stack Overflow posts?

1 Answer 1

2

What's problem with Ctrl+K key for code formatting? And this is the only key for code formatting. And yes, you can also use {} button instead of Ctrl+K. Or you can manually write code inside <code> or <pre> tag. And yes, you can test formatting in Formatting Sandbox.

See Markdown help for more and advanced markdown related help.

2
  • I didn't know about <kbd> tag. Where is it listed ? Commented Nov 30, 2012 at 4:39
  • @PriyankDoshi - See the updated answer.
    – Himanshu
    Commented Nov 30, 2012 at 4:40

You must log in to answer this question.

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