Difference between revisions of "Wiki editing tips"
(→Syntax Highlighting) |
(→Syntax Highlighting) |
||
Line 15: | Line 15: | ||
</nowiki> | </nowiki> | ||
+ | |||
+ | or if you want line numbers: | ||
+ | |||
+ | <nowiki> | ||
+ | |||
+ | <syntaxhighlight lang="python" line> | ||
+ | |||
+ | .. | ||
+ | |||
+ | </syntaxhighlight> | ||
+ | |||
+ | </nowiki> | ||
The lang can be "csharp" , "vb" , or "vbnet". Many other languages are selectable, but students at TRC are doing the exam in C# therefore they should use the "csharp" option. | The lang can be "csharp" , "vb" , or "vbnet". Many other languages are selectable, but students at TRC are doing the exam in C# therefore they should use the "csharp" option. |
Revision as of 20:45, 28 November 2016
Syntax Highlighting
This wiki will include many fragments of code. Syntax Highlighting will make the code easier to read and understand, most IDE's do this as standard and this wiki can also do it.
You can wrap your code in the following tags:
<syntaxhighlight lang="python"> .. </syntaxhighlight>
or if you want line numbers:
<syntaxhighlight lang="python" line> .. </syntaxhighlight>
The lang can be "csharp" , "vb" , or "vbnet". Many other languages are selectable, but students at TRC are doing the exam in C# therefore they should use the "csharp" option.