Difference between revisions of "Code HighLight"

(Created page with "While Mediawiki supports '''<nowiki><code></nowiki>''' tag, in our wiki, we will use this instead <pre><syntaxhighlight lang="php"> enter code here </syntaxhighlight> <br/></p...")
 
(No difference)

Latest revision as of 02:52, 1 August 2014

While Mediawiki supports <code> tag, in our wiki, we will use this instead

<syntaxhighlight lang="php">
enter code here
</syntaxhighlight>
<br/>

This will allow us to have differently highlighted pieces of codes for different languages
Note on <br/> tag: It seems that extension used for syntax highlighting don't add the new line when it finishes the code, so only for the sake of visual appeal, use it all the time.