Divs

(:div:) markup examples
This page is a sandbox for playing with the new (:div:) markup. The basic div markup works like advanced tables, using a (:div:) ... (:divend:) sequence.

This text is before the division.

(:div id='foo' style='background: #ffffcc' :)
Here is my text in the division.

* Other markups are allowed
* here also

(:divend:)

Now we're after the division.

This text is before the division.

Here is my text in the division.

  • Other markups are allowed
  • here also

Now we're after the division.

As with advanced tables, a (:div:) or advanced table markup will automatically close any previous (:div:) section. This means that divs and advanced tables do not nest (we may relax this in a future version, but that's the way it's going to work for now).

There is also a >>...<< shortcut that allows WikiStyles to be easily applied to divs. Some examples:

%define=Pm bgcolor=#ffeeff font-style=italic%
%define=John bgcolor=#eeffee%
%define=shouts font-weight=bold font-size=larger%
%define=meekly font-size=smaller%

>>Pm<<
Hello, this is some text from Pm.

>>John<<
And here is some text from John.

>>Pm<< 
And now we're back to Pm again.  Pm can enter multiple paragraphs and
* lists
* lists
* lists

>>John shouts<<
And now John has something really important to say!

>>Pm meekly right<<
okay already!

Hello, this is some text from Pm.

And here is some text from John.

And now we're back to Pm again. Pm can enter multiple paragraphs and

  • lists
  • lists
  • lists

And now John has something really important to say!

okay already!

Any WikiStyle specification will work between the >> and <<, thus:

>>id=foo class=special<<
Same as [@(:div id=foo class=special:)@]

Same as (:div id=foo class=special:)

>>bgcolor=#ffffdd right blue<<
Right aligned blue text in a yellow background

Right aligned blue text in a yellow background

>>border='2px solid red' padding=4px<<
This text lives in a box.

The box can span multiple paragraphs and structures.
>><<

This text is outside of the box.

This text lives in a box.

The box can span multiple paragraphs and structures.

This text is outside of the box.

 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.12 00.11 MarkupToHTML begin
 3: 00.12 00.12 MarkupToHTML begin
 4: 00.13 00.13 MarkupToHTML end
 5: 00.13 00.13 MarkupToHTML begin
 6: 00.14 00.14 MarkupToHTML end
 7: 00.14 00.14 MarkupToHTML begin
 8: 00.15 00.14 MarkupToHTML end
 9: 00.15 00.14 MarkupToHTML begin
10: 00.15 00.14 MarkupToHTML end
11: 00.15 00.14 MarkupToHTML begin
12: 00.15 00.14 MarkupToHTML end
13: 00.16 00.15 MarkupToHTML end
14: 00.16 00.15 MarkupToHTML begin
15: 00.17 00.16 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
16: 00.17 00.16 ReadApprovedUrls SiteAdmin.ApprovedUrls end
17: 00.18 00.16 MarkupToHTML end
18: 00.18 00.17 MarkupToHTML begin
19: 00.18 00.17 MarkupToHTML end
20: 00.18 00.17 now
Peak memory: 3,416,392 bytes