Normally when you want to enter code in an answer you can simply paste your code, highlight it and hit the "format as code" (curly braces icon) on the toolbar above your answer ('Ctrl+K' does the same thing). That indents by four spaces to produce something like this:
alert("hello");
Thats all fine and dandy but if you want to include code in a list, that is where the "format as code" button fails, because it always simply adds (or removes) 4 spaces before the highlighted block. I am proposing that the "format as code" function be modified to detect how deep you are in a list and format the code (add spaces) accordingly. For example:
This is my first list item
alert("Format as code should indent me by 8 spaces");
This is my second list item
alert("Format as code should indent me by 8 spaces");
This list item is indented by four spaces
alert("Format as code should indent me by 12 spaces");
This list item is indented by eight spaces
alert("Format as code should indent me by 16 spaces");
+1
nonetheless.