Difference between revisions of "Help:Editing"

From ProgrammingExamples
Jump to: navigation, search
(NLlgaWRhjYo)
(Undo revision 4434 by 193.227.228.1 (Talk))
Line 1: Line 1:
WgRtdQ  <a href="http://ekrqrmohaxon.com/">ekrqrmohaxon</a>, [url=http://ohymqquubxtu.com/]ohymqquubxtu[/url], [link=http://giddpysodida.com/]giddpysodida[/link], http://eznwsbowelrp.com/
+
=== [http://www.mediawiki.org/wiki/Help:Editing_pages#Editing_rules.2C_editing_conventions.2C_and_formatting Editing Wiki Pages] ===
 +
* [http://www.mediawiki.org/wiki/Help:Formatting Text Formatting]
 +
** [http://www.mediawiki.org/wiki/Help:Links Creating Links]
 +
** [http://www.mediawiki.org/wiki/Help:Images Adding Images]
 +
** [http://www.mediawiki.org/wiki/Help:Tables Tables]
 +
=== Quick tricks ===
 +
* To get syntax highlighting, surround your source code with <code><nowiki><source lang="</nowiki>''language''<nowiki>">...</source></nowiki></code> <br />or (preferred) <code><nowiki><syntaxhighlight lang="</nowiki>''language''<nowiki>">...</syntaxhighlight></nowiki></code>. <br />The [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages list of supported languages] is huge, and includes among many others '''c''', '''cpp''', '''java''', '''perl''', '''python'''. Note: lang attributes are in all lower case.
 +
* To keep your indentation, but '''not''' show syntax highlighting, you may surround your code with ''pre'' tags: <br /><code><nowiki><pre>your code</pre></nowiki></code>

Revision as of 09:08, 10 March 2011

Editing Wiki Pages

Quick tricks

  • To get syntax highlighting, surround your source code with <source lang="language">...</source>
    or (preferred) <syntaxhighlight lang="language">...</syntaxhighlight>.
    The list of supported languages is huge, and includes among many others c, cpp, java, perl, python. Note: lang attributes are in all lower case.
  • To keep your indentation, but not show syntax highlighting, you may surround your code with pre tags:
    <pre>your code</pre>