As far as i understand it jspwiki does allow 'inline formats' (like
__bold__) to be nested (like __''bold italics''__).
'Paragraph formats' like tables (|), lists (* and #) and code blocks
({{{) need to be placed at the start of the line and therefore
nesting is impossible.
Workarounds:
1. Directly include the desired css formats
(the pre format of your skin.css):
#One
#Two
%%(border:1px dashed #b6b6b6; background-color:#fff7c0)
Should be in a shaded area\\
Middle line\\
Last line of the shaded area
%%
#Three
2. Insert the subformat as another page:
#One
#Two [{InsertPage page='MyCodeBlock'}]
#Three
and the page 'MyCodeBlock' contains
{{{
Should be in a shaded area
Middle line
Last line of the shaded area
}}}
Hope this helps
Frank
In the new default css, any code blocks {{{ }}} are in a shaded area.
I'm trying to get the following to work with the three lines in a shaded area
1.One
2.Two
Should be in a shaded area
Middle line
Last line of the shaded area
3.Three
Markup is:
#One
#Two
{{{Should be in a shaded area
Middle line
Last line of the shaded area}}}
#Three
The code block is in the shaded area but the numbering breaks:
1.One
2.Two
Should be in a shaded area
Middle line
Last line of the shaded area
1.Three
If I do:
#One
#Two
{{{Should be in a shaded area
Middle line
Last line of the shaded area}}}
#Three
The numbering then works, but the code block is no longer is in the shaded area.
1.One
2.Two
Should be in a shaded area
Middle line
Last line of the shaded area
3.Three
Any ideas before I dive into the formatter?
Thanks!
Foster