| 43 | The output is enclosed in a {{{<pre>}}} block of class "striped", |
| 44 | and each line in a {{{<div>}}} block of alternating "even-stripe" |
| 45 | and "odd-stripe" classes. You '''must''' set this classes up in |
| 46 | your {{{templates/site_css.cs}}} file, or alternatively use the |
| 47 | processor arguments "box-style", "even-style" and "odd-style". |
| 48 | |
| 49 | The "number" argument allows automatic numbering of lines; |
| 50 | it accepts three args: a Python-style format (quotes and all), |
| 51 | the initial number for the first line, and the step between |
| 52 | numbers. If no format is passed, there is no automatic |
| 53 | numbering; otherwise, the start and step arguments default to 1. |
| 54 | |
| 55 | Example: |
| 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) |