%META:TOPICINFO{author="ProjectContributor" date="1655468868" format="1.1" version="1"}%
%META:TOPICPARENT{name="CompareRevisionsAddOn"}%
---+ !CompareRevisionsAddOn Plugin
%FORMFIELD{"Description"}%

This is an helper plugin for the CompareRevisionsAddOn on Foswiki

It has two purposes:
   1 It sets the =CompareRevisionAddonPluginEnabled= flag, which can be used by templates (e.g. used by the HistoryPlugin)
   1 It provides an easy way to replace links to the original =rdiff= script by links to the new =compare= script.

---++ Syntax Rules
   
=%<nop>RDIFF2COMPARE{"text"}%= - Replaces links to the =rdiff= script with links to the =compare= script

---++ Plugin Settings

(none)

---++ Plugin Installation Instructions 

This plugin is installed together with the CompareRevisionsAddOn, see the instructions there.
It should be enabled (if necessary) with the configure script.

Test: <nop>CompareRevisionsAddOnPlugin is %IF{"context CompareRevisionsAddOnPluginEnabled" then="" else="*not* "}%installed and enabled.

---++ Change History
%TABLE{columnwidths="7em" tablewidth="100%"}%
|  08 Apr 2017 (1.115)  | Foswikitask:Item14366: Reorder initialization to allow local CGI::Carp. |
|  01 May 2014 (1.112)  | Foswikitask:Item12407: Don't decode entities during comparson. Convert to simple decimal version. |
|  10 Feb 2014          | Foswikitask:Item12741: Formatting parameters not passed on the referenced scripts |
|  23 Oct 2013 (1.1.11) | Foswikitask:Item12423: fix double encoding in header on UTF-8 sites |
|  28 Feb 2013 (1.1.10) | Foswikitask:Item12408: use correct template names in docs |
|  31 Jan 2013 (1.1.9) | Foswikitask:Item12337: Remove undocumented dependency on CPAN:HTML::TreeBuilder >= 4.0 |
|  28 Nov 2012 (1.1.8) | Foswikitask:Item11267: Convert to perl version strings, <br />\
                         Foswikitask:Item11755: Compare breaks characterset encoding. <br />\
                         Foswikitask:Item11930: Read settings from %LOCALSITEPREFS% |
|  06 Apr 2012 (1.1.7) | Foswikitask:Item11445: References to Sandbos should use %<nop>SANDBOXWEB% macro. Release with Foswiki 1.1.5. |
|  05 Dec 2011 (1.1.6) | Release with Foswiki 1.1.4 - minor code and documentation cleanup. |
|  28 May 2011 (1.1.6) | Foswikitask:Item10803 - Fix invalid Foswiki configuration affecting !ApacheLogin users introduced in =1.1.4= |
|  17 May 2011 (1.1.5) | Foswikitask:Item10677 - Speed optimization by avoiding doing pointless lookup for settings in plugin topic |
|  30 Apr 2011 (1.1.4) | Foswikitask:Item10566 - Add =compareauth= script for !ApacheLogin users %BR%\
                         - Switch to x.y.z version numbering %BR%\
                         - Moved dependency list from documentation into DEPENDENCIES manifest \
                         - Modernize system topic for !BuildContrib |
|  10 Apr 2011 | Foswikitask:Item10401 - Call logEvent in compare <br /> Foswikitask:Item10402 - Don't use obsolete template for missing web/topic. <br /> Version shipping with 1.1.3 |
|  21 Oct 2010 | Version shipping with 1.1.1 |
|  12 Sep 2009 | Kenneth Lavrsen: Fixed problem with tables always showing up as changed even when they were not |
|  09 Aug 2009 | Plugin is now a default plugin shipped with Foswiki. It will later have its function integrated in core in a future Foswiki version so its life as default plugin is temporary. Changed its switchboard setting to EXPERT so it is hidden in configure. You should never need to change this anyway. |
|  22 Mar 2009 | Gilmar Santos Jr: ported to [[Foswiki:Development/FoswikiStandAlone][FSA architecture]] (Foswiki:Tasks/Item1352) |
|  09 Jan 2009 | Gilmar Santos Jr: fixed ambigous print (Foswiki:Tasks.Item716) |
|  08 Dec 2008 | Kenneth Lavrsen: Changed the author to myself. !JChristophFuchs is the original author but announced in 2006 that he no longer maintains this plugin. So now I officially take the task as maintainer. Plugin is changed to Foswiki namespace and tested and works under Foswiki 1.0.0. Policy is now feel free to modify but please do not break compatibility. | 
|  07 Nov 2007 | Updated for TWiki 4.2.0. |
|  26 Feb 2006 | Initial version |
|  CPAN Dependencies: | none |
|  Other Dependencies: | none |
|  Perl Version: | 5.008 |

__Related Topics:__ DeveloperDocumentationCategory, AdminDocumentationCategory, %SYSTEMWEB%.%WIKIPREFSTOPIC%, %LOCALSITEPREFS%, [[%SYSTEMWEB%.Plugins][Plugins]]

%META:FORM{name="PackageForm"}%
%META:FIELD{name="Author" title="Author" value="Foswiki:Main.KennethLavrsen"}%
%META:FIELD{name="Copyright" title="Copyright" value="2006, !JChristophFuchs; 2008-2014 Kenneth Lavrsen and Foswiki Contributors"}%
%META:FIELD{name="Description" title="Description" value="Compares two revisions of a document. In contrast to normal _rdiff_, the comparison is done with the rendered HTML output."}%
%META:FIELD{name="Home" title="Home" value="http://foswiki.org/Extensions/CompareRevisionsAddOn"}%
%META:FIELD{name="License" title="License" value="GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]])"}%
%META:FIELD{name="Release" title="Release" value="15 Mar 2026"}%
%META:FIELD{name="Repository" title="Repository" value="https://github.com/foswiki/%TOPIC%"}%
%META:FIELD{name="Support" title="Support" value="http://foswiki.org/Support/CompareRevisionsAddOn"}%
%META:FIELD{name="Version" title="Version" value="1.116"}%
