Difference between revisions of "Help:Editing"
From ProgrammingExamples
m (reformat) |
(Links to various editing pages at mediawiki) |
||
(12 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | === [http://www.mediawiki.org/wiki/ | + | === Quick tricks === |
− | * [http://www.mediawiki.org/wiki/Help:Formatting | + | * 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> |
− | * | + | |
− | * | + | === Editing in general === |
− | + | * How to use [http://www.mediawiki.org/wiki/Help:Formatting Markup] for bullets, faces, use of HTML | |
− | + | * How to create [http://www.mediawiki.org/wiki/Help:Links Links] of various kinds | |
− | + | * How to make [http://www.mediawiki.org/wiki/Help:Tables Tables] | |
− | + | * '''Way''' more than you wanted to know about [http://www.mediawiki.org/wiki/Help:Images Images] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 21:19, 20 April 2011
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>