Wrapper

Furthermore, to any formatter %%(Formatierer) Text%% it is possible to assign one of frame after indicating to it the parameter wrapper .


%%(formatter
[wrapper="box | shade | page | text"]
[wrapper_align= "left | center | right | justify"]
[wrapper_width="pixel"]
[clear])
Text%%

box shade page text
Wrapper + x1 +
Alignment + x1 2 +
Width + x1 + 3
Frame + +
Automatic line feed + + +

1 This option does not make sense, because the width of the block is always equal to the width of the page.
2 Only to the left.
3 If you don't put the line feeds yourself, the block width is fixed by the engine at approximately 90% of the page width.


Grammar = [FORMATTER | FORMAT WRAPPER | FORMAT WRAPPER OPTION | Text]


FORMATTER = [ cl | comment | css | email | fyi | hl * | html | ini | java | nb | pascal | php | sql | wacko ]


FORMAT WRAPPER = box, shade, page und text


FORMAT WRAPPER OPTION = [ wrapper_width=Pixel | wrapper_align=[ left | right ] ]


TEXT = alles, frei.


P.S.: hl is available for the following formatters = [ abap | cpp | css | diff | dtd | html | java | javascript | mysql | perl | php | ruby | python | sh | sql | vbscript | xml ]

Example



%%(css wrapper=box wrapper_align=left wrapper_width=270)
.d { font-size: 70% }
%%


As we see, wrapper box makes it possible to form the convenient "menu", streamlined with text. By the way, there is special formatter (Box), which does not make anything except as it turns around text into this wrapper.

shade


%%(css wrapper=shade)
.d2 { font-size: 70% }
%%

.d2 { font-size: 70% } 

shade — this box without the tuning.

text


%%(wacko wrapper=text wrapper_align=center)
text on to center
%%

text on to center

text is derived the "floating" (float) block of text.

page

%%(wacko wrapper=page wrapper_width=200)
this text cannot be wider than two hundred pixel
%%

this text cannot be wider than two hundred pixel

page it makes it possible to regulate the width of the usual block of text.

box


%%(wacko wrapper=box wrapper_width=300)
**Box**---- A hundred times every day I remind myself that my inner and outer life depend upon the labors of other men, living and dead, and that I must exert myself in order to give in the measure as I have received and am still receiving. – Albert Einstein
%%