Difference between revisions of "Help:Editing"
(→Wizards) |
(→Code) |
||
Line 139: | Line 139: | ||
Use either a leading blank to format text as source code, or the <code><code>-Tag</code> for regular code highlighting. | Use either a leading blank to format text as source code, or the <code><code>-Tag</code> for regular code highlighting. | ||
− | For highlighting a syntax of a specific programming language, use the | + | For highlighting a syntax of a specific programming language, use the <syntaxhighlight>-Tag (values for '''lang''' are for example: csharp, xml, ...). |
<pre><nowiki> | <pre><nowiki> | ||
− | < | + | <<syntaxhighlight lang="csharp"> |
// Hello World in Microsoft C#. | // Hello World in Microsoft C#. | ||
Line 155: | Line 155: | ||
} | } | ||
} | } | ||
− | </ | + | </syntaxhighlight> |
</nowiki></pre> | </nowiki></pre> | ||
which will result in | which will result in | ||
− | < | + | <syntaxhighlight lang="csharp"> |
// Hello World in Microsoft C#. | // Hello World in Microsoft C#. | ||
Line 173: | Line 173: | ||
} | } | ||
} | } | ||
− | </ | + | </syntaxhighlight> |
=Images= | =Images= |