TrustedUser
2,147
edits
(→SyntaxHighlight: Update information about extension) |
|||
Line 33: | Line 33: | ||
There are several wiki extensions installed to help you in the editing task. | There are several wiki extensions installed to help you in the editing task. | ||
== SyntaxHighlight | == SyntaxHighlight == | ||
This extension can be used to present source code with syntax highlighting. As you can guess for us it is mainly useful for C++ code, but it can also be used with other languages. | This extension can be used to present source code with syntax highlighting. As you can guess for us it is mainly useful for C++ code, but it can also be used with other languages. | ||
'''Link:''' | '''Link:''' https://www.mediawiki.org/wiki/Extension:SyntaxHighlight | ||
'''Syntax:''' | '''Syntax:''' | ||
Line 64: | Line 64: | ||
</source> | </source> | ||
The extension also now supports using the ''syntaxhighlight'' tag instead of ''source'', which can help if the code itself contains the source tag: | |||
<pre> | <pre> | ||
< | <syntaxhighlight lang="xml"> | ||
<header path="include/foo.h" /> | |||
<source path="src/foo.cpp" /> | |||
</syntaxhighlight> | |||
</ | |||
</pre> | </pre> | ||