DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:unformattedcode

UnformattedCode Plugin

Compatible with DokuWiki

  • 2013-12-08 "Binky" unknown
  • 2013-05-10 "Weatherwax" yes
  • 2012-10-13 "Adora Belle" yes
  • 2012-01-25 "Angua" yes

plugin Overwrites the core ''monospace/code'' formatting to prevent text conversions (entities/typography) inside.

Last updated on
2011-05-12
Provides
Syntax
Repository
Source

Tagged with code, replace

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

This plugin substitutes the core monospace/code formatting, so uses the same syntax (i.e. surrounded by two single quotes):

Here is some text with ''code inside which uses "special->syntax" and //other stuff//(tm)''.

This will result in nearly the same as without this plugin, except that the characters '”', '→' and '™' are not converted and you will get out exactly what you put in.

You can also use this alternative Syntax (i.e. surrounded by two double quotes):

Here is some text with ""code inside which uses "special->syntax" and //other stuff//(tm)"".

This will result in the same as above. But you can also switch the overwriting of the core syntax off in a configuration option. That way you can have the ''normal code syntax'' behaving like you are used to and the ""alternative syntax"" disallowing text conversions.

Development

ToDo

Change Log

Discussion

Before reporting any issues (bugs or requests), please first take a look at the FAQ on plugin problems.

You can report any issues either on the Issue Tracker or here in this section.

Adding blanks?

Hi - I realized that your plugin (and the original code text as well) compresses blanks. So if you type two or more blanks only one blank is shown. Any way to show them all? Thanks Thore 2011-08-16

This is normal behaviour for any kind of HTML (except for <pre>). You can add “non-breaking spaces” instead if you like. As someone just recently asked the same question in the #dokuwiki IRC channel, here is the reply in the log: http://irc.dokuwiki.org/index.php?d=2011-11-21#msg361902Anika HenkeAnika Henke
ach

London, UK
2011/11/24 00:14
plugin/unformattedcode.txt · Last modified: 2013/08/30 03:53 by 122.212.225.106