Block-In-A-Div


This works well, but could be more author-friendly:

>>background-color=#f7f7f7 padding=4px border='1px solid #cccccc' margin-left:40px<<
[@
Here is some text.
And some more.@]
>><<
Here is some text.
And some more.

Unfortunately this author-friendly markup adds an empty newline that's only visible in certain skins or when there's a background and/or border:

>>background-color=#f7f7f7 padding=4px border='1px solid #cccccc' margin-left:40px<<
[@
Here is some text.
And some more.
@]
>><<
Here is some text.
And some more.

This markup doesn't add the newline:

>>background-color=#f7f7f7 padding=4px border='1px solid #cccccc'<<
-> [@
Here is some text.
And some more.
@]
>><<
Here is some text.
And some more.

This markup produces similar results, but has been discouraged by Pm:

>>background-color=#f7f7f7 padding=4px border='1px solid #cccccc'<<
->[@
Here is some text.
And some more.
@]
>><<
Here is some text.
And some more.

I'm not sure that I'm discouraging it -- I'm still figuring out which way to go. I see advantages to this version and may still decide to go with it. --Pm

This results in a double-border:

->%block background-color=#f7f7f7 padding=4px border='1px solid #cccccc'% [@
Here is some text.
And some more.
@]
Here is some text.
And some more.

Try %list% instead of %block%. Block applies the border to both the <dl> and the <pre> tag, which is why it produces a double border. --Pm

OK...:

->%list background-color=#f7f7f7 padding=4px border='1px solid #cccccc'% [@
Here is some text.
And some more.
@]
Here is some text.
And some more.

This markup was suggested by Pm, but adding a background color or border reveals that it produces a leading newline:

%define=code block margin-left=40px padding=4px background-color=#f7f7f7 border='1px solid #cccccc'%
%code% [@  
Here is some text.
And some more.
@]
  
Here is some text.
And some more.

This slight variation works(?):

%define=code block background-color=#f7f7f7 padding=4px border='1px solid #cccccc' margin-left:40px%
%code% [@
Here is some text.
And some more.
@]
Here is some text.
And some more.

Perhaps this should be a default wikistyle?:

%define=code block apply=pre padding=4px margin-left:30px%
%code% [@
Here is some text.
And some more.
@]

%code background-color=#f7f7f7 border='1px solid #cccccc'% [@
Here is some text.
And some more.
@]

->%code background-color=#f7f7f7 border='1px solid #cccccc'%[@
Here is some text.
And some more.
@]
Here is some text.
And some more.
Here is some text.
And some more.
Here is some text.
And some more.
 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.03 00.03 MarkupToHTML begin
 3: 00.03 00.03 MarkupToHTML begin
 4: 00.03 00.03 MarkupToHTML end
 5: 00.03 00.03 MarkupToHTML begin
 6: 00.03 00.03 MarkupToHTML end
 7: 00.03 00.03 MarkupToHTML begin
 8: 00.04 00.04 MarkupToHTML end
 9: 00.04 00.04 MarkupToHTML begin
10: 00.04 00.04 MarkupToHTML end
11: 00.04 00.04 MarkupToHTML begin
12: 00.04 00.04 MarkupToHTML end
13: 00.04 00.04 MarkupToHTML begin
14: 00.04 00.04 MarkupToHTML end
15: 00.04 00.04 MarkupToHTML begin
16: 00.04 00.04 MarkupToHTML end
17: 00.04 00.04 MarkupToHTML begin
18: 00.04 00.04 MarkupToHTML end
19: 00.04 00.04 MarkupToHTML begin
20: 00.04 00.04 MarkupToHTML end
21: 00.05 00.05 MarkupToHTML end
22: 00.06 00.06 MarkupToHTML begin
23: 00.06 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
24: 00.07 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls end
25: 00.07 00.07 MarkupToHTML end
26: 00.07 00.07 MarkupToHTML begin
27: 00.08 00.07 MarkupToHTML end
28: 00.08 00.08 now
Peak memory: 3,147,776 bytes