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.21 00.21 MarkupToHTML begin
 3: 00.21 00.21 MarkupToHTML begin
 4: 00.22 00.22 MarkupToHTML end
 5: 00.22 00.22 MarkupToHTML begin
 6: 00.22 00.22 MarkupToHTML end
 7: 00.22 00.22 MarkupToHTML begin
 8: 00.23 00.22 MarkupToHTML end
 9: 00.23 00.22 MarkupToHTML begin
10: 00.23 00.22 MarkupToHTML end
11: 00.23 00.22 MarkupToHTML begin
12: 00.23 00.22 MarkupToHTML end
13: 00.24 00.23 MarkupToHTML end
14: 00.24 00.23 MarkupToHTML begin
15: 00.25 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
16: 00.25 00.25 ReadApprovedUrls SiteAdmin.ApprovedUrls end
17: 00.26 00.25 MarkupToHTML end
18: 00.26 00.25 MarkupToHTML begin
19: 00.26 00.26 MarkupToHTML end
20: 00.26 00.26 now
Peak memory: 3,732,696 bytes