Edgewall Software

Changes between Version 4 and Version 5 of ProcessorBazaar


Ignore:
Timestamp:
Nov 29, 2004, 3:06:09 AM (19 years ago)
Author:
Juanma Barranquero
Comment:

Added Striped.py

Legend:

Unmodified
Added
Removed
Modified
  • ProcessorBazaar

    v4 v5  
    3737[[BR]]''By:'' Jan Finell  (finell at cenix-bioscience.com)
    3838[[BR]]''Required ver:'' > 0.8pre (though changing the import of the ''wiki_to_html'' function will make it work on older versions)
     39----
     40=== Striped ===
     41A Trac wiki-processor to display text as a striped listing.
    3942
     43The output is enclosed in a {{{<pre>}}} block of class "striped",
     44and each line in a {{{<div>}}} block of alternating "even-stripe"
     45and "odd-stripe" classes. You '''must''' set this classes up in
     46your {{{templates/site_css.cs}}} file, or alternatively use the
     47processor arguments "box-style", "even-style" and "odd-style".
     48
     49The "number" argument allows automatic numbering of lines;
     50it accepts three args: a Python-style format (quotes and all),
     51the initial number for the first line, and the step between
     52numbers. If no format is passed, there is no automatic
     53numbering; otherwise, the start and step arguments default to 1.
     54
     55Example:
     56
     57{{{
     58{{{
     59#!Striped
     60#!number: " %3d ", 100, 10
     61#!box-style: border: thick solid #C0C0C0; margin: 20px; width: 70%;
     62#!even-style: background-color: #DAC0DA;
     63...text here...
     64}}}
     65}}}
     66
     67(A lot of ideas and syntax for arguments shamelessly stolen from previous entry by Jan Finell. Thanks!) [[BR]]
     68[[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/ProcessorBazaar/Striped.py
     69[[BR]]''By:'' Juanma Barranquero  (lekktu at gmail.com)
     70[[BR]]''Tested on:'' 0.8 (should work on previous versions, though)
    4071----
    4172See also:  WikiProcessors, MacroBazaar