Menu

Commit [r6180]  Maximize  Restore  History

Ticket #2048: add a `div` and a `span` built-in wiki processors.

The div macro should be used with a block and can be used for wrapping any wiki text (including contained blocks) within a <div> element. The `class` and `style` attributes of the <div> can be specified by listing keyword arguments after the div. The value of such an argument can be quoted using single or double quotes if it has to contain space characters (usually the case for the `style` attribute).

Example:
{{{
{{{
#!div class=important style="background: #ffaaaa"
Note that:
- use with care!
- you have been warned
- I won't repeat it
}}}
}}}

The span macro should be used with the usual macro call style, like ![[span(Note: you have been warned, class=important, style=background:#ffbbbb)]]. Note that the arguments don't support quoting for now.

cboos 2007-11-19

changed /trunk/trac/wiki/api.py
changed /trunk/trac/wiki/formatter.py
changed /trunk/trac/wiki/parser.py
/trunk/trac/wiki/api.py Diff Switch to side-by-side view
Loading...
/trunk/trac/wiki/formatter.py Diff Switch to side-by-side view
Loading...
/trunk/trac/wiki/parser.py Diff Switch to side-by-side view
Loading...
Auth0 Logo