DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:plaintext

plaintext Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" unknown
  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown

plugin <text> tag that embeds plain text with linebreaks

Last updated on
2018-05-20
Provides
Syntax
Repository
Source

Tagged with formatting

Download and Installation

Search and install the plugin using the Extension Manager. 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?

greenseeker 2011/01/14 19:28

The text inside <text> is wrapped and is not monospace. — danny0838 2013/03/19 03:41

Thank you! It's perfect for poems! — shane 2011/01/14 21:43

plugin/plaintext.txt · Last modified: 2018-05-28 19:54 by Klap-in