Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

PreviewChanges

Summary: Preview highlighted changes of the wiki markup
Version: 20111019
Prerequisites: PmWiki version 2.2.13 or newer
Status: Beta
Maintainer: Petko
Users: +2 (view / edit)

Preview highlighted changes of the wiki markup.

Description

While editing a page in "preview" mode, a diff block is shown before the rendered page output. The diff block contains, like a page history, highlighted differences between the saved version of the page and the currently edited text.

Demo: The recipe is now enabled on this page and in the Test group.

Installation

  • Copy previewchanges.phpΔ to your pmwiki/cookbook directory.
  • Add to config.php such a line:
    if(@$_REQUEST['preview']>'') include_once("$FarmD/cookbook/previewchanges.php");

Configuration

No configuration is required. The recipe will use the same functions that create and display the page history.

Usage

While modifying a page, press the "Preview" button. Above the rendered page output you will see a block with highlighted differences between the versions.

Notes

The recipe requires PmWiki version 2.2.13 or newer.

Change log / Release notes

  • 20111019 : first public release, ready to be tested.

See also

Contributors

Recipe written and maintained by Petko. The recipe was inspired by the "Show changes" function in Wikipedia.

Comments

See discussion at PreviewChanges-Talk?

User notes +2: 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.

Edit - History - Print - Recent Changes - Search
Page last modified on October 21, 2011, at 03:57 PM