01096: Disable all markup for PlainText Wiki (Closed - replied)
Description: I am looking for a way to make a PlainText wiki with no markup except maybe links between pages. Even that, I'm toying with simply putting the link in parentheses when applicable. But basically, it would be free-style editing, where if one author decided to bold a phrase by enclosing it in asterisks that's fine, while another used carrots that's fine too. Can someone help me?
I would still need WordWrap and to TrackChanges and ControlAccess.
DisableMarkup("img"); # disable inline images DisableMarkup("'''"); # disable bold DisableMarkup("''"); # disable italics DisableMarkup("'''''"); # disable bold italics DisableMarkup("markup-key"); # Read belowTo find out the different "markup-keys" that allow you to disable markup rules, you may look at the file pmwiki/scripts/stdmarkup.php (don't modify it). There, markup rules are defined like this:
Markup('notitle', [other parameters]);So, to disable the 'notitle' markup, you will add to config.php such a line
See also PmWiki:CustomMarkup.You can also completely disable features by adding such lines in config.php:
$EnableStdMarkup = 0; # disable stdmarkup.php $EnableWikiTrails = 0; # disable WikiTrails $EnableWikiStyles = 0; # disable WikiStyles $EnableMarkupExpressions = 0; # disable MarkupExpressions $EnablePageList = 0; # disable Search and PageLists $EnableVarMarkup = 0; # disable vardoc links $EnableForms = 0; # disable forms
I don't recommend disabling stdmarkup.php, use individual DisableMarkups instead.
You probably shouldn't disable rules defined in the first 110 lines of stdmarkup.php, and rules you don't understand what they do. Hope this is useful. --Petko May 02, 2009, at 03:51 PM