DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:plaintext

plaintext Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" unknown

plugin <text> tag that embeds plain text with linebreaks

Last updated on
2013-03-19
Provides
Syntax
Repository
Source

Tagged with formatting

Download and Installation

Download and install the plugin using the Plugin Manager using the URL given above. Refer to Plugins on how to install plugins manually.

Syntax and Usage

Here is the demo picture:

Demo Picture

<text>

Similar to <nowiki>text</nowiki>, but linebreaks are preserved (replaced by <br/> in the output, but head and tail linebreaks are trimmmed)

<text>
(Line 1) This is a **long** //long// __long__ long long long long long long long long long long long long long long long long long long long sentence.
(Line 2) This is a **long** //long// __long__ long long long long long long long long long long long long long long long long long long long sentence.
 
(Line 4) This is a **long** //long// __long__ long long long long long long long long long long long long long long long long long long long sentence.
</text>

<TEXT>

Adds a box like <code>, but long text is auto wrapped.

<TEXT>
(Line 1) This is a **long** //long// __long__ long long long long long long long long long long long long long long long long long long long sentence.
(Line 2) This is a **long** //long// __long__ long long long long long long long long long long long long long long long long long long long sentence.
 
(Line 4) This is a **long** //long// __long__ long long long long long long long long long long long long long long long long long long long sentence.
</TEXT>

<code> <file>

This plugin adds a “plaintext” style for wrapped text, so you can use it in <code> or <file> box.

<file plaintext>
(Line 1) This is a **long** //long// __long__ long long long long long long long long long long long long long long long long long long long sentence.
(Line 2) This is a **long** //long// __long__ long long long long long long long long long long long long long long long long long long long sentence.
 
(Line 4) This is a **long** //long// __long__ long long long long long long long long long long long long long long long long long long long sentence.
</file>

Discussion

How is this different than…

indenting two spaces?
using <file> tags?
using <code> tags?

greenseekergreenseeker

2011/01/14 19:28

The text inside <text> is wrapped and is not monospace. — danny0838danny0838

2013/03/19 03:41

Thank you! It's perfect for poems! — shaneshane

2011/01/14 21:43

plugin/plaintext.txt · Last modified: 2015-11-16 18:35 by 2001:4ca0:2303:affe:c1e8:dd94:1cf9:67ee