SourceCode
last modified: 2007-10-29 05:44:26
permalink to this page
SourceCode Plugin
With the SourceCode Plugin you can integrate the source code of a local file into your CMS page.
Example Tag:
{% lucidTag SourceCode url="./media/PyLucid/install_views.css" %}
Note: With the <code>-Tag you can directly put highlight source code into your CMS page, look at TinyTextileExample
PyLucid used the Python syntax highlighter Pygments . It supports an ever-growing range of languages, look at: http://pygments.pocoo.org/docs/lexers/
some Examples:
./media/PyLucid/install_views.css:
./media/PyLucid/shared_sha_tools.js:
<code>-Tag
Use <code=ext>...</code> and PyLucid used Pygments to highlight it.
'ext' is the typical fileextension/alias, please look at:
examples
<code=css>
.xs {font-family:verdana,arial,helvetica,sans-serif;font-size: x-small}
.m {font-size: medium}
</code>
result:
Here a "error" example: