Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 155 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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?

share|improve this question

marked as duplicate by Kevin Vermeer, random Dec 12 '11 at 17:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
I've formatted the code in this question as code, and it shows for me now. – Mad Scientist Dec 12 '11 at 15:09
1  
Do you have a link to the question in question? – Grant Thomas Dec 12 '11 at 15:13
2  
up vote 7 down vote accepted

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
share|improve this answer
    
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 .