Skip to main content
15 events
when toggle format what by license comment
Mar 15, 2018 at 13:11 comment added Matt Sephton Interestingly Sublime Text 3 renders the code block. It’s the only editor I’ve found that does that.
Aug 5, 2016 at 5:24 comment added tripleee It's a bit awkward in a comment, yes. But understanding the example is probably not a prerequisite for explaining why you think this construction is problematic.
Aug 5, 2016 at 1:03 comment added Alois Mahdal @tripleee Sorry but I don't understand the example (is it even possible to show in a comment?)
Aug 4, 2016 at 12:47 comment added tripleee @AloisMahdal I can write code which satifies two conditions; (1) one and (2) two. echo "moo" ... I'm sure it can be paraphrased to avoid this pattern, but can you explain how exactly this is bad writing? (I'll readily admit that this particular example is not great writing.)
Mar 30, 2015 at 16:28 comment added Alois Mahdal IOW, I have always accepted this as a hidden message that bullet point list and code snippet do not belong next to each other (they may belong inside each other though).
Mar 30, 2015 at 16:25 comment added Alois Mahdal Maybe subjective, but: placing code snippet right after list seems as a sub-optimal writing practice (well, a "subset" of bad practice of using too much naked bullet point lists); It will almost always break the narrative of the text. Everytime I ever hit this, I eventually realized that best thing is adding "For example" or something anyway. So in fact, I never cared about the problem: it only reminded me of bad writing.
Mar 7, 2014 at 12:45 history edited badp CC BY-SA 3.0
added 17 characters in body
Dec 4, 2013 at 7:22 comment added balpha StaffMod @jcubic In that case (which is the usual case), you want the code to appear inside the list, not after it. That's absolutely possible by indenting the code eight spaces (four for the list and four to make it code). This question is only about the rare case that you want code to appear immediately below the list, but outside it.
Dec 4, 2013 at 7:18 comment added jcubic This don't work when I put two ordered list items and code for them, even if you put number 1. to first and 2. to second, you got two items 1.
Jan 18, 2013 at 22:20 comment added Shmiddty The <!-- --> fix was very helpful, thanks. :)
Oct 3, 2012 at 16:26 vote accept Stephan202
Jul 24, 2011 at 14:08 comment added Arjan I guess Markdown converters choosing the second meaning is the best of the two, as then one could still use the above-mentioned workarounds to force it to not do that. If a converter would NOT add it to the list item itself, there would be no way to force it to do so? (Even two spaces at the end of the first line would not help, as then the next lines would not be formatted as code.)
Jul 24, 2011 at 10:26 comment added Jeff Mercado I've been throwing in &nbsp; inbetween when this became an issue. I'll be doing this from now on.
Jul 24, 2011 at 9:19 comment added Hendrik Vogt Great explanation!
Jul 24, 2011 at 9:09 history answered balphaStaffMod CC BY-SA 3.0