Summary: Removes the default preformatted text rules
Version: 2007-01-09
Prerequisites: pmwiki 2.1
Maintainer: Americo Albuquerque
Categories: Layout

Questions answered by this recipe

  • How to copy-past text to a wiki page and not get pre-formatted text by default
  • How to remove the preformated text from a wikipage

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.


This recipe disables the default preformatted text behaviour. To have preformatted text you have to use the markup (:pre:) explicit.


You can also disable the preformatted markup by disabling the "^ws" and the "^ " markup from your config.php by using

  DisableMarkup('^ ');

This will also disable the bulleted, numbered and definition list's autoindentation. If you want to maintain the list's autoindentation but remove the preformatted behaviour then use this recipe by adding include_once("$FarmD/cookbook/nopreformatted.php"); to your config.php file

Release Notes

:nopreformatted.phpΔ If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

See Also



Americo Albuquerque


See Discussion at NoPreformattedText-Talk?

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.