This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex]

Contents

  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:

Version Date
0.11 2002年03月11日
0.10 2001年10月28日
0.9 2001年05月07日
0.8 2001年01月23日
0.7 2000年12月06日
0.6 2000年12月04日
0.5 2000年11月17日
0.4 2000年11月01日
0.3 2000年10月25日
0.2 2000年08月26日
0.1 2000年07月29日

2024年10月23日 11:11

AltStyle によって変換されたページ (->オリジナル) /