2

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?

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.

3

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.

  • Voted up, good answer. Thanks. – George Stocker Dec 9 '09 at 15:03
2

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.

  • 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 .