· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Help On Processors


1. Processors


Processors work on the data in a code display. You specify which processor to call by using a bang path-like construct in the first line. A bang path is a concept known from Unix command line scripts, where they serve the exact same purpose: the first line tells the shell what program to start to process the remaining lines of the script.

For more information on the possible markup, see HelpOnEditing.

1.1. Colorize


The Colorize processor currently knows of Python sources, and can syntax-hilight them. Besides the canonical way to call that processor, MoinMoin also recognizes a traditional bang path on the first line of the script, as long as it contains "python".

Example:
if lines[0].contains("python"):
    print "colors!"



ID
Password
Join
You plan things that you do not even attempt because of your extreme caution.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2004-11-12 20:34:27
Processing time 0.0042 sec