Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 7 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.