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. |