Possible Duplicate:
How to nest code within a list using markdown

I'm trying to put XML code in this answer, but it's not displaying at all. I tried using the code formatter and then ctrl + k (which is the same thing), but it doesn't matter. Here is the code:

<up:MultiUploader type="LABEL" ui:field="uploader" servletPath="/...     /SampleUploadServlet" styleName="{style.myup}" maximumFiles="2" avoidRepeatFiles="true"   validExtensions="xml"/> 

It appears immediately after a list item.

Is this a bug or am I doing something wrong?


I took a look at your answer and the issue is that the XML appears immediately after a list.

When formatting code that falls within the context of a list, you need to indent it a further 4 spaces for a total of 8:

  1. My list

    <myxml code>
  2. More list
  • That was the problem. Thank you for the answer and the edit! – James Drinkard Dec 12 '11 at 15:15

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