Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Possible Duplicate:
How do I format my code blocks?

I am trying to answer a question that I asked. The HTML output of the code block does not match what I have type in. How do I fix this?

http://stackoverflow.com/a/10114328/452281

share|improve this question

marked as duplicate by Arjan, Mat, animuson, Cody Gray, Pops Apr 16 '12 at 14:31

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.

2  
What do you mean it doesn't match? – simchona Apr 14 '12 at 21:15
up vote 4 down vote accepted

I think my edit fixed it.

Problem was with having tabs for indent, and using <pre><code> around the whole thing.

See the editing help - indent code with four spaces. (Select all the code and hit the {} button.) Same for the data sections, just paste, select and Ctrl-K.

share|improve this answer
1  
More precisely: using <pre><code> is fine, but needs manual HTML encoding of < into &lt;, and so on. That's not needed when using the Markdown four spaces. – Arjan Apr 14 '12 at 21:29
    
Thank you. I will look over this so it doesn't happen again. – jftuga Apr 14 '12 at 21:35

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