SyntaxColoring

From OOModels
Revision as of 13:35, 8 July 2008 by AndreasLeue (talk | contribs)
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 include statement...</span>
<div class="attribute">
 ...colorful attribute block...
</div>
</div>

and is rendered like that:

...normal code...
...colorful include statement...
...colorful attribute block...