This plugin will help you to write
readable TWikiML by
formatting a tag on multiple lines. A line that starts with
~~~
(three tildes)
will be appended to the previous one by removing whitespaces.
| Line prefix | Action |
~~~ | glues lines removing all whitespaces |
~~~<space> | glues lines removing all but one whitespace |
| You type: |
This is a line
~~~ glued to another line.
|
| You get (faked): |
This is a line glued to another line.
|
| You get if installed: |
This is a line glued to another line.
|
| You type: |
Glue
~~~Plugin
|
| You get (faked): |
| GluePlugin |
| You get if installed: |
|
Glue
~~~Plugin
|
| You type: |
Apples
~~~
And
~~~
Oranges
|
| You get (faked): |
| Apples And Oranges |
| You get if installed: |
|
Apples And Oranges
|
| You type: |
%SEARCH{"GluePlugin"
~~~ nosearch="on" nosummary="on" nototal="on"
~~~ separator=", "
~~~ scope="topic"
~~~ format="$topic"
~~~ }%
|
| You get (faked): |
|
GluePlugin
|
| You get if installed: |
|
GluePlugin
|
- Set SHORTDESCRIPTION = Enable TWikiML to span multiple lines
Warning: This plugin does
not work on the
TWiki:Codev.DakarRelease since
multi-line
TWikiVariables have been introduced there.
- Download the ZIP file from the Plugin web (see below)
- Unzip
GluePlugin.zip in your twiki installation directory. Content:
| File: | Description: |
data/TWiki/GluePlugin.txt | Plugin topic |
lib/TWiki/Plugins/GluePlugin.pm | Plugin Perl module |
- If the plugin is installed correctly then the following two fruits
will appear joined on one line: Apples and Oranges
--
TWiki:Main.MichaelDaum - 15 Aug 2005