NoPreformattedText
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
Description
This recipe disables the default preformatted text behaviour. To have preformatted text you have to use the markup (:pre:) explicit.
Notes
You can also disable the preformatted markup by disabling the "^ws" and the "^ " markup from your config.php by using
DisableMarkup('^ws'); 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
See Also
Contributors
Americo Albuquerque
Comments
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.