Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Using multi-line formatted text (using the <pre> tags) inside of a list in Mediawiki is giving me problems.

What I would love to do is something like this:

# Text in a numbered entry
#:<pre>Formated
Text
Goes
Here</pre>
# Next numbered entry

However, this will only place the first line of text in the list, and will not format the rest of the text.

If I leave the #: out, then the list will restart (at 1) for the next entry:

# Number 1 in list
<pre>Formated
Text
Goes
Here</pre>
# Also 1 in list

This question is discussed on Wiki's meta, but I have been unable to find an acceptable solution to my problem.

Does anyone have a work around or something for my problem?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

You can use standard HTML syntax (which is totally valid wiki-syntax):

<ol>
<li> Text in a numbered entry</li>
<li><pre>Formated
Text
Goes
Here</pre></li>
<li> Next numbered entry</li>
</ul>
share|improve this answer
    
Great! Thanks! The only thing is that I wish I could mix the HTML and Wikitext for the list, but at least it works! –  KLee1 Aug 3 '10 at 16:26
    
@Klee1: You can use all other wikitext (like bolding) in the list but not the list-specific wikitext (unfortunately). –  neo Aug 3 '10 at 16:28

I added an answer over on StackOverflow on a similar question that people might find interesting.

http://stackoverflow.com/a/8390173/490487

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.