Difference between revisions of "Instructions to Wiki Editors"

Jump to navigation Jump to search
→‎SyntaxHighlight: Use new syntax
(→‎Translation: Language template has been fixed)
(→‎SyntaxHighlight: Use new syntax)
Line 37: Line 37:


<pre>
<pre>
<source lang="cpp">
<syntaxhighlight lang="cpp">
#include <foo.h>
#include <foo.h>


Line 45: Line 45:
     ~MyClass();
     ~MyClass();
};
};
</source>
</syntaxhighlight >
</pre>
</pre>


Which gives the following result:
Which gives the following result:


<source lang="cpp">
<syntaxhighlight lang="cpp">
#include <foo.h>
#include <foo.h>


Line 58: Line 58:
     ~MyClass();
     ~MyClass();
};
};
</source>
</syntaxhighlight >
 
The extension also now supports using the ''syntaxhighlight'' tag instead of ''source'', which can help if the code itself contains the source tag:
 
<pre>
<syntaxhighlight lang="xml">
    <header path="include/foo.h" />
    <source path="src/foo.cpp" />
</syntaxhighlight>
</pre>


== SimpleMathJax ==
== SimpleMathJax ==

Navigation menu