DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:unformattedcode

UnformattedCode Plugin

Compatible with DokuWiki

Lemming, Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners+

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

Last updated on
2016-04-03
Provides
Syntax
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to skipentity

Tagged with code, replace

Installation

Search and install the plugin using the Extension Manager. 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 Henke 2011/11/24 00:14
plugin/unformattedcode.txt · Last modified: 2023-10-30 23:07 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki