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.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.21 00.21 MarkupToHTML end
 5: 00.21 00.21 MarkupToHTML begin
 6: 00.21 00.21 MarkupToHTML end
 7: 00.21 00.21 MarkupToHTML begin
 8: 00.22 00.21 MarkupToHTML end
 9: 00.22 00.21 MarkupToHTML begin
10: 00.22 00.21 MarkupToHTML end
11: 00.22 00.21 MarkupToHTML begin
12: 00.22 00.21 MarkupToHTML end
13: 00.22 00.21 MarkupToHTML begin
14: 00.22 00.21 MarkupToHTML end
15: 00.22 00.21 MarkupToHTML begin
16: 00.22 00.21 MarkupToHTML end
17: 00.22 00.21 MarkupToHTML begin
18: 00.22 00.21 MarkupToHTML end
19: 00.22 00.21 MarkupToHTML begin
20: 00.22 00.22 MarkupToHTML end
21: 00.23 00.23 MarkupToHTML end
22: 00.24 00.23 MarkupToHTML begin
23: 00.24 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
24: 00.25 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls end
25: 00.25 00.25 MarkupToHTML end
26: 00.25 00.25 MarkupToHTML begin
27: 00.26 00.25 MarkupToHTML end
28: 00.26 00.25 now
Peak memory: 3,737,240 bytes