What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

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  
add comment

1 Answer 1

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
add comment

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