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.

Possible Duplicates:
How do I include a code block right after a list without it turning into a blockquote?
How to nest code within a list using markdown

I edited this question, but even after retyping the entire entry and formatting it myself, I still can't get the codeblocks to show up.

Is there a specific reason why?

share|improve this question

marked as duplicate by random, John Rudy, ベレアー アダム, George Stocker, Shog9 Dec 9 '09 at 16:32

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.

I think it's a dupe of 3792, which asks about code blocks within lists, not right after them. – ベレアー アダム Dec 9 '09 at 14:54
Another relevant link: meta.stackexchange.com/questions/3327/… – Stephan202 Dec 9 '09 at 15:23

2 Answers 2

up vote 3 down vote accepted

Code within a list needs to be indented with an extra four spaces.

  • Here is the list

    System.InvalidOperationException: Workflow with id "[GUID]" [...]

Which is just:

 - Here is the list

        System.InvalidOperationException: Workflow with id "[GUID]" [...]

This works for both ordered and unordered lists.

share|improve this answer
Voted up, good answer. Thanks. – George Stocker Dec 9 '09 at 15:03

The solution is to double-indent (e.g., 8 spaces) the code block if it's within a list. Here is an example of a previously asked relevant meta question.

share|improve this answer
Great. If you add the link to the duplicate I'll vote to close with ya. :-) – George Stocker Dec 9 '09 at 14:53

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