• Publicity: Public Only All

util-diff-procs.tcl

Procedures to generate pretty formatted diffs of some text

Location:
packages/acs-tcl/tcl/util-diff-procs.tcl

Procedures in this file

Detailed information

util::diff (public)

 util::diff [ -old old ] [ -new new ] [ -show_old_p show_old_p ]

Perform a UNIX diff on 'old' and 'new', and return an HTML fragment of the changes. Requires struct::list (from tcllib)

Switches:
-old (optional)
original text
-new (optional)
new text
-show_old_p (optional, defaults to "t")
Returns:
HTML fragment of differences between 'old' and 'new'
Author:
Vinod Kurup vinod@kurup.com
Created:
2005-10-18

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.

util::html_diff (public)

 util::html_diff [ -old old ] [ -new new ] [ -show_old_p show_old_p ]

Perform a UNIX diff on 'old' and 'new', and return an HTML fragment of the changes. Requires struct::list (from tcllib)

Switches:
-old (optional)
original text
-new (optional)
new text
-show_old_p (optional, defaults to "t")
Returns:
HTML fragment of differences between 'old' and 'new'
Author:
Vinod Kurup vinod@kurup.com
Created:
2005-10-18

Partial Call Graph (max 5 caller/called nodes):
%3 xowiki::Page instproc www-diff xowiki::Page instproc www-diff (public) util::html_diff util::html_diff xowiki::Page instproc www-diff->util::html_diff

Testcases:
No testcase defined.
[ show source ]