Possible Duplicate:
Can the code button in the format bar be made to work for code blocks in numbered lists

Is it possible to have an automatic formatting of a code snippet inside a list? E.g., If I want something like this:

  • Some words

    some code
    some more code

The standard Ctrl+K shifts right 4 spaces only and it's not enough if inside a list. So I had to manually shift the block another 4 spaces. Is it possible to auto-detect being inside list and making an appropriate 8-place shift?

  • The title here is somewhat misleading, since you're aware of how exactly to Markdown a code snippet within a list, but you're really referring to the post editor not knowing. Dec 14, 2012 at 7:34
  • @BoltClock'saUnicorn I've edited, hope it's more verbose now Dec 14, 2012 at 7:35


Browse other questions tagged .