SyntaxColoring
From OOModels
Jump to navigationJump to search
If you mark your code with span or div tags, you can apply syntax coloring to it.
The DownloadManager recognises these tags and removes them from your code before sending it to the downloading client.
See Mediawiki:Monobook.css for currently defined styles. If you want to add a style, say so in the talk page.
Example[edit]
Your code might look like this:
<div class="code"> ...normal code... <span class="oogtemplatecode">...colorful statement...</span> <div class="attribute"> ...colorful block... </div> </div>
and is rendered like that:
...normal code...
...colorful statement...
...colorful block...