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

Possible Duplicate:
How to nest code within a list using markdown

http://stackoverflow.com/a/13169659/57135

I know how to format code, but can't get it to work in this answer. Not sure why?

share|improve this question

marked as duplicate by Shog9 Nov 1 '12 at 6:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 4 down vote accepted

You were inside a list, so the four spaces were being interpreted as continuing the list, not starting a code block. You needed to add another four spaces to indent it as code. I've fixed it for you.

share|improve this answer

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