Is it possible to indent code block in MediaWiki using SyntaxHighlight GeSHi ?
For example, I would like the code container below to be aligned with a third level list
* This is plain text of a first-level list to be rendered by MediaWiki
** This is plain text of a a second-level list to be rendered by MediaWiki
*** This is plain text of a third-level list to be rendered by MediaWiki
<source lang="Cpp">
int main(int argc, char** argv)
{
my_function(4, 1, 2, 3);
return 0;
}
</source>
I tried wrapping a container of GeSHi colons code (using the MediaWiki standard indentation syntax ), but this prevents the parsing of GeSHi syntax.
To clarify, I would like to avoid wrapping my code with <code></code>, since I need the correct syntax highlighting.
Any suggestions?
source
share