NatsWiki System Managing
Search: 

Navigation

GluePlugin

Description

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.

Syntax

Line prefixAction
~~~ glues lines removing all whitespaces
~~~<space> glues lines removing all but one whitespace

Examples

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

Plugin Settings

  • Set SHORTDESCRIPTION = Enable TWikiML to span multiple lines

Plugin Installation Instructions

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

Plugin Info

Plugin Author: TWiki:Main.MichaelDaum
Plugin Version: 16 Aug 2005 (V1.3)
Change History:  
16 Aug 2005: properly support internal tags; performance improvements; fixed use if uninitialized value
15 Aug 2005: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.024
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
License: GPL (GNU General Public License)
TWiki:Plugins/Benchmark: GoodStyle nn%, FormattedSearch nn%, GluePlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/GluePlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/GluePluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/GluePluginAppraisal

-- TWiki:Main.MichaelDaum - 15 Aug 2005

r1.3 - 08 Nov 2005 - 17:26 GMT - MichaelDaum
Copyright (c) 1999-2006 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Powered by TWiki/Beijing 01 Feb 2003 (NatsWiki), Syndicate this site.