This page covers all the block markup character combinations and related markup, eg wraps, joins, and breaks. If you are new to wiki markup, visit Edit Getting Started first. While this documentation can be found elsewhere, eg the markup master index it is preserved here as a single point of reference. Block markingA block can be marked as follows >> <<
and continues until the style changes or empty brackets are encountered. A block cannot be nested using this markup, but a block can contain a table or the following markup A block can be marked as follows (:div attr:)
(:divend:)
Blocks can be nested by naming (with numbers) the blocks, viz (:div5 attr:)
(:div2 attr:)
(:div2end:)
(:div5end:)
A block can also be a table. Text wraps, joins and breaksText on two lines in a row will wrap and fill as needed (the normal HTML behavior).
To turn off automatic text filling, use the
Use
Use
Use
Use
Preformatted blocksThe [= and =] markup can be applied to multiple input lines, including empty lines. This makes it useful for displaying lines of code, which will be shown as monospaced font and not interpreted by PmWiki. Just leave an empty space in front of the opening [=, and finish with a closing =]. If there are [=...=] pairs in the code, put a =][= after each =]. For example:
The same effect can be achieved using the [@...@] syntax; in this case you don’t need a leading space or the extra =][= markup.
It is also possible to use [= ... =] within other wiki structures, which enables the inclusion of new lines in text values. The example below shows how to include a multi-line value in a hidden form field. (:input hidden message "[=Line1 Line2=]":) See alsoMore advanced formatting can be achieved with wiki styles and page directives.
This is a talk page for improving PmWiki.BlockMarkup. |