Nathan Campos
Nathan Campos

Reputation: 29497

Inline Code For a GitHub README Using MediaWiki

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

Answers (1)

Tekkub
Tekkub

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

Related Questions