python dependency
Permalink
python is currently needed to show the html diff. I know why you used it but I think you should still consider to replace it with a php script.
I just got the second call: "Why doesn't that work?"..
Installing python because of one script is not an option for me.
Have all server python installed except mine?
I just got the second call: "Why doesn't that work?"..
Installing python because of one script is not an option for me.
Have all server python installed except mine?
Yes... Easy to understand ;-) I tried to build a diff engine in c a long time ago.
Would be cool though if the feature wouldn't be visible when it doesn't work..
I'll keep my eyes open, someone might build a php diff engine someday ;-)
Would be cool though if the feature wouldn't be visible when it doesn't work..
I'll keep my eyes open, someone might build a php diff engine someday ;-)
http://www.phpclasses.org/browse/package/2302.html
it contains a lass that gets started by
$fDiff = new fileDiff($file1,$file2,$file1AlternateName2Display,$file2AlternateName2Display);
$fDiff->foundDiff(); // to show
//OR:
$ret = $fDiff->foundDiff(true); // to return it only.
does PHP syntax hilight on the fly. not hard to remove. seems pretty usefull.
it contains a lass that gets started by
$fDiff = new fileDiff($file1,$file2,$file1AlternateName2Display,$file2AlternateName2Display);
$fDiff->foundDiff(); // to show
//OR:
$ret = $fDiff->foundDiff(true); // to return it only.
does PHP syntax hilight on the fly. not hard to remove. seems pretty usefull.
Unfortunately, that class, like so many others, is not HTML based. It's a pure line by line diff engine. What's great about htmldiff.py (even though it doesn't always work perfectly and, obviously, is python) is that it is frequently a decent approximation of HTML-based differences...
Meaning you'll see highlighted images when they are new, adding bold tags and things will count as new items but the engines know how to parse them, etc...
Meaning you'll see highlighted images when they are new, adding bold tags and things will count as new items but the engines know how to parse them, etc...
honestly we thru the diff routine in on a whim, so yes it bothers me that it requires python but its more likey I'd just dump that feature than try to build it by hand. we've built diff engines by hand before and it sucks.
i think we're also going to start taking a gradated install approach. so the new install script we're working on now will do some checks and give you some awareness as to what's critical to run c5 (hey, no database!) and what would make it run better (flash uploader won't work, diff engine wont work, etc)