parent nodes: DemoPageFormatting | DemoTextBasics
Demo Page Edit Attributes
Contents:
Back
General
In Wikidpad a number of attributes is available, with which the formatting of a page in the editor can be influenced.
Top
Font face
The appearance of a page in the editor can be changed, by setting a different font face for it.
Example
The font of this page is "Times" in the editor, because of the font attribute on the next line.
Global
This attribute has a global representation [global.font: font name] with which the default editor font for the whole wiki can be set. The font for individual pages can then still be set using the local font attribute. The global attribute:
would set the editor font for the whole wiki to "Times".
Top
Word wrap
The editor supports auto-wrapping of typed text; it however only does this based on the width of the editor window and there is no way to influence this further. There are no facilities for setting page margins, auto-wrap margins or the like. Auto-wrap also only applies to the text in the editor window; it has no influence on the presentation of the lines of texts in the html view modes, when paragraph mode has been set to true for the page.
Wikidpad offers "Word wrap" as a means to adjust the lenght of lines on a page áfter they have been typed. It wrappes the lines in a block of text between two empty lines, in which the start and the end of the page also count as an empty line. Word wrap is a three step process:Set the maximum lenght the lines should have by adding the [wrap:value] attribute to the pageSet the cursor in the block of text lines, that needs to be wrapped.Press Crtl+W and the editor will rewrap the block to the maximum line width specified.
It is advised to be véry carefull when using word wrap. The reasons for this are:It will wrap áll of the lines in the block; there is no way to limit it to a specific (selected) number of lines.It is very indiscriminative, not to say dumb, as to whát it wraps; it will wrap éverything: text, headers, lists, horizontal lines, escape blocks, table declarations, the lot.It is possibly even dumber in what it produces; it can effectively ruine the layout and specification of a page. Luckily it can be undone with the "Undo" function ("Ctrl+Z").
RemarksAuto-wrapping can be switched of with the option: menu / Editor / Settings / "Auto-wrap".Word wrap has no use, when paragraph mode for the page is set to true.When the cursor is in the last block on the page, word wrap also wraps the first block on the page.
Top
Example
Because of the poor performance of word wrap, no example is presented.
Global
This attribute has a global representation [global.wrap: value] with which the wrap value for the whole wiki can be set. The wrap value for individual pages can then still be set using the local font attribute. The global attribute:
would set the wrap value for the whole wiki to 70.
Top
Remarks
Word wrap functions poorly
Top
Todo's
done.demo.
done.demo.projectdemo.demo2: Check out all posibilities: check out all posibilities
action.demo.development: check out the poor behaviour of word wrap
Top
Results
[demo.status.waiting: actions]
Top
previous: Back
parents: DemoPageFormatting, DemoTextBasics