Diff.cfc (Beta)
;
# line # line
<html>   <html> 
<head><title>Text 2 </title></head> <head><title>Text 1 </title></head>
<body>   <body> 
Hello, my name is Shlomy Ganz, how are you doing? Hello, my name is Inigo Montoya ,You killed my father.
<font color="#FF0000"> This text is in red </font> <font color="#00FF00"> This text is in green </font>
I have more lines   
I have more lines   
</body>  </body> 
</html>  </html> 
  Returns a line by line comparison of two strings (usually block text or code)
  USAGE
<cfobject component="diff" name="cfcDiff">
<cfoutput>#cfcDiff.diffFormat(form.txt1,form.txt2)#</cfoutput>


  Documentation

Diff


methods: compareArray, compareLine, compareText, diffFormat
* - private method

compareArray
publicstruct compareArray ( arrayarg_aLeft="[runtime expression]", arrayarg_aRight="[runtime expression]" )

Output: supressed
Parameters:
   arg_aLeft: array, optional, arg_aLeft
   arg_aRight: array, optional, arg_aRight

compareLine
publicquery compareLine ( requiredstringtxt1, requiredstringtxt2 )

Output: supressed
Parameters:
   txt1: string, required, txt1
   txt2: string, required, txt2

compareText
publicquery compareText ( requiredstringtxt1, requiredstringtxt2 )

Output: supressed
Parameters:
   txt1: string, required, txt1
   txt2: string, required, txt2

diffFormat
publicstring diffFormat ( requiredstringtxt1, requiredstringtxt2, stringcolorSame="green", stringcolorNotSame="red" )

Output: enabled
Parameters:
   txt1: string, required, txt1
   txt2: string, required, txt2
   colorSame: string, optional, colorSame
   colorNotSame: string, optional, colorNotSame


  COMPATIBILITY
ColdFusion MX+
  BUGS / FEATURE REQUESTS
shlomygantz@hotmail.com
  EXAMPLE
http://www.shlomygantz.com/customtags
  DOWNLOAD
http://www.shlomygantz.com/customtags/diff_cfc.zip