Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Modern CFML wrapper for DaisyDiff Java library

Notifications You must be signed in to change notification settings

sgalashyn/DaisyDiff.cfc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Description

Modern CFML wrapper for DaisyDiff Java library.

Please see the library project page for the CSS and images for styling the output.

Requirements

Library uses modern CFScript syntax, so it requires at least Adobe ColdFusion 9 or Railo 3.2 engine to work.

This library assumes you have a .jar file available for loading. Please see original library for the version which uses JavaLoader.

Usage Example

<cfsavecontent variable="leftHTML">
<p></p><div>This is improved explanation. Thanks.</div>
<div>This is improved explanation. Thanks.<br></div><p></p>
</cfsavecontent>

<cfsavecontent variable="rightHTML">
<p></p><div>This is improved explanation. Thank you!</div>
<div>This is improved <strong>explanation</strong>. Thanks.<br></div>
<p>Good ending.</p>
</cfsavecontent>

<cfset local.daisyDiff = CreateObject("component", "DaisyDiff").init() />

<cfdump var="#local.daisyDiff.diff(leftHTML,rightHTML)#">

<link href="daisydiff.css" rel="stylesheet">

<cfoutput>#local.daisyDiff.diff(leftHTML,rightHTML)#</cfoutput>

License

Library is released under the Apache License Version 2.0.

About

Modern CFML wrapper for DaisyDiff Java library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ColdFusion 100.0%