6

How can i format my questions/answers so that i get consecutive numbers when a list is interrupted? All of my numbers start with 1 even if i set them manually to 1,2,3.

Have a look at my recent answer here: https://stackoverflow.com/a/14476143/284240


Screenshot:

enter image description here

3
  • I always hit this.. And my work around is not to use the default list formatter. I manually number them instead.. Ugly Commented Jan 23, 2013 at 9:52
  • @Krishnabhadra: That's the problem. Above i've already numbered them manually. I even see this when i edit the answer. But as soon as i save it will be overridden with 1. Commented Jan 23, 2013 at 9:54
  • 1
    Ya I know.. My work around is to number them like this 1)... 2).... 3).... Again ugly.. Commented Jan 23, 2013 at 9:55

1 Answer 1

7

As far as I know, you can't do that. But you can avoid interrupting the list, by indenting everything that belongs to the item 4 spaces (that means code in there is indented 8 spaces!):

  1. some stuff

    some code
    

    some more content related to item #1.

  2. more stuff!

    neat code for the second item
    

    clarification about the code for #2.

  3. the most important item

    This item is so important, that it contains

    A Heading

    and

    1. its own sublist
    2. with random
    3. stuff
  4. a boring item, to demonstrate that even after a sublist the original list can continue.

1

You must log in to answer this question.

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