Recent Changes - Search:

PmWiki

pmwiki.org

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

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.
Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 12:03 PM
 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.07 00.05 MarkupToHTML begin
 3: 00.08 00.05 MarkupToHTML begin
 4: 00.09 00.06 MarkupToHTML end
 5: 00.09 00.06 MarkupToHTML begin
 6: 00.09 00.06 MarkupToHTML end
 7: 00.09 00.06 MarkupToHTML begin
 8: 00.09 00.06 MarkupToHTML end
 9: 00.09 00.06 MarkupToHTML begin
10: 00.10 00.07 MarkupToHTML end
11: 00.10 00.07 MarkupToHTML begin
12: 00.10 00.07 MarkupToHTML end
13: 00.10 00.07 MarkupToHTML begin
14: 00.10 00.07 MarkupToHTML end
15: 00.10 00.07 MarkupToHTML begin
16: 00.10 00.08 MarkupToHTML end
17: 00.10 00.08 MarkupToHTML begin
18: 00.10 00.08 MarkupToHTML end
19: 00.10 00.08 MarkupToHTML begin
20: 00.11 00.08 MarkupToHTML end
21: 00.14 00.11 MarkupToHTML end
22: 00.15 00.12 MarkupToHTML begin
23: 00.17 00.14 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
24: 00.18 00.15 ReadApprovedUrls SiteAdmin.ApprovedUrls end
25: 00.19 00.16 MarkupToHTML end
26: 00.19 00.17 MarkupToHTML begin
27: 00.21 00.18 MarkupToHTML end
28: 00.21 00.18 now