SourceCode
PyLucid used the Python syntax highlighter "Pygments":http://pygments.pocoo.org/ . It supports an ever-growing range of languages, look at: http://pygments.pocoo.org/docs/lexers/
In Creole markup you can easy insert sourcecode: Use <<code ext=".EXT">>...<</code>>
and PyLucid used Pygments to highlight it. Where '.EXT' is the typical fileextension/alias of the code, please look at:
<<code ext=".css">>
/* CSS Stylesheet */
.xs {font-family:verdana,arial,helvetica,sans-serif;font-size: x-small}
.m {font-size: medium}
<</code>>
result:
Here a "error" example:
The other way is to use Creole {{{...}}} code block tags.
With the SourceCode Plugin you can integrate the source code of a local file into your CMS page.
permalink