Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 208
Nathan Campos Avatar asked Oct 19 '25 23:10

Nathan Campos


1 Answers

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

like image 163
Tekkub Avatar answered Oct 22 '25 04:10

Tekkub