Hörnan   HelpOnProcessors Logga in!
 
HelpContents Search Diffs Info Edit Subscribe Print View

  1. Processors
    1. Colorize
    2. CSV

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.

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:

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

CSV

The CSV processor works on so-called comma separated values, though the comma is now usually a semicolon. The first line is considered to contain column titles that are rendered in bold, so when you don't want table headers, leave the first line empty.

The bang path can contain "-index" arguments, to hide certain columns from the output; column indices are counted starting from 1.

     /!\ The current code contains a very simple CSV parser.

MoinMoin Version History:
VersionDate
0.112002-03-11
0.102001-10-28
0.92001-05-07
0.82001-01-23
0.72000-12-06
0.62000-12-04
0.52000-11-17
0.42000-11-01
0.32000-10-25
0.22000-08-26
0.12000-07-29

Ändra denna sida (last modified 2003-02-20 19:53:45)
Bifogade filer

Sök på Hörnan.    Titelsökning:    Textsökning:    Liknande sidor    Sidkarta

Besök oss också gärna på våran fina chat!

Hörnan - en oas i 100110110001011101010111101011000010011011111010000110010010001110110101001001001