Linked Questions

234
votes
5answers
82k views

How to nest code within a list using Markdown

Oftentimes, I want to include code samples in a list, for example: Item One Item Two, for example: private bool ItemTwo() { return this.IFeelLucky; } Item Three The problem is that there isn't a ...
65
votes
2answers
4k views

Code blocks after a list, but not within a list in markdown. Is it possible? [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item In this post about nesting code-blocks in lists, it is explained that if you want to nest a code-...
1
vote
3answers
250 views

Four space indented code cannot immediately succeed a numbered list in markdown [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item The title says it all. Here is a reproduction: An Item A second item // Note that there are ...
5
votes
2answers
89 views

Problem with numbered lists [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item In my answer here, I wrote up a solution with step-by-step instructions. However, my numbered ...
4
votes
1answer
307 views

Why does indenting this code 4 spaces not work? [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item I wanted to have this code in my post, and I indented things by four spaces. As you can see, it ...
2
votes
1answer
177 views

Code is indented by 4 spaces but isn't interpreted as code [duplicate]

Possible Duplicate: Why is a code block not properly formatted when placed immediately after a list item? If you look at my post ( 3rd down ) on this stack overflow page, you'll see that my code ...
3
votes
2answers
61 views

Allow codeblocks in Lists [duplicate]

when trying to create a list and including a code-block in one of the points, either you can't properly format the codeblock as such, or you reset the numbered list counter. imagine following ...
6
votes
1answer
134 views

Code snippet formatting don't work after bulleted list formatted line [duplicate]

I have problem when answering or asking questions on StackOverflow Suppose I have two possible code snippets and I want to ask which is better. Here is code 1: @Override protected void onCreate(...
3
votes
1answer
151 views

List entry followed by code block messes up the code section [duplicate]

Here's two examples (note that in first example, backticks also had no effect, for some reason): include/db.php: $attribs = array( PDO::ATTR_PERSISTENT => $...
4
votes
1answer
102 views

When placing code directly after a list, the code is not recognized. Is this a bug? [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item When placing code directly after a list. The code is not recognized. See the example below. - ...
4
votes
1answer
92 views

Why wasn't this code formatted correctly? [duplicate]

Possible Duplicate: Why is a code block not properly formatted when placed immediately after a list item? Why did this line of code: } elseif(preg_match("/(mysql_num_rows()|mysql_fetch_array()|...
4
votes
1answer
125 views

Code immediately following a list does not format properly [duplicate]

Formatting breaks if code follows a list: List item List item This is in a code block This does not work as expected However, it works if between the list and the code List item List item There ...
2
votes
1answer
153 views

How do correctly display code blocks after a bullet list? [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item As part of this answer on SO I entered a code block. The code however was not being displayed in ...
0
votes
2answers
65 views

Code blocks not formatted depending on surrounding context [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item I was just submitting a new answer to an old question on Stackoverflow and noticed my code block ...
0
votes
2answers
71 views

Syntax highlighting broken after numbered list [duplicate]

Possible Duplicate: Why is a code block not properly formatted when placed immediately after a list item? The 4 space indent is not being recognized as a code block after a numbered list. See ...

15 30 50 per page