Reputation: 29497
I'm writing a README.mediawiki
file for my project called plainBlog on GitHub, but I want to add some inline code on it. What is the syntax for this? Also, what is the syntax for XML code (multiple lines)?
An example of inline code is located at github/markup, where we have lines like this: gem install wikicloth
Upvotes: 4
Views: 7974
Reputation: 31695
There's a few:
Start each line with a space.
Text is '''preformatted''' and
''markups'' '''''can''''' be done
or:
<pre> Text is '''preformatted''' and
''markups'' '''''cannot''''' be done</pre>
For inline <code>
spans there is no special syntax:
<code>Source code</code>
From http://www.mediawiki.org/wiki/Help:Formatting
Upvotes: 8