Our wiki has examples of computer commands, so we use <pre>...</pre> boxes.

Can reasonably simple wikitext generate something like the following list?

Example list
* First bullet point is just normal text.
* Second point is followed by example keyboard input.
   First line in an indented "pre" box.
   Second line in same indented "pre" box.
  Some more normal text is sometimes wanted.
* Third point like second.
   First "pre" line.
   Second "pre" line.

Here is an experiment:

==Example list==
*First bullet point.
*N1 Example<pre>N1 first</pre><pre>N1 second</pre>N1 More text.
*N2 Example<pre>N2 first
N2 second</pre>N2 More text.
*N3 Example<pre>N3 first<br />N3 second</pre>N3 More text.

Each of the N1, N2 and N3 lines makes an indented pre box, but each has a 
problem:
- N1 gives two boxes.
- N2 has only a single line in the box.
- N3 shows "<br />" (< > are replaced by &lt; &gt; and using <nowiki> didn't 
help).

Here is an example where I would like to use this:
http://vim.wikia.com/wiki/Working_with_CSV_files#Features

BTW Is this a suitable question for this list?

John

_______________________________________________
Wikia-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/wikia-l

Reply via email to