Hello~ Bumping this with permission from Sarenji~ I went ahead and made some changes with help from Google to the diff app. I'm currently putting it on the public folder of my dropbox. It can be accessed here:
http://dl.dropbox.com/u/72762463/diffnew.html
Okay let me take a minute to explain the changes. I've changed it to an
Efficiency Cleanup instead of a Semantic Cleanup that was used. ie it should screw up less than Semantic Cleanup. You can try the difference between Efficiency and Semantic Cleanup
here. I also added a changable
Edit Cost and set it to 3 as a default which I found was the ideal edit cost. Feel free to change it though. Anyway what edit cost means is "Increase computational efficiency by factoring out short commonalities which are not worth the overhead. The larger the edit cost, the more agressive the cleanup." tyvm Google!! LOL.
I also added the
Timeout option which you should pay attention to. It just means how long is taken to diff the thing in seconds. 1sec is the default. You can set it to 0 if whatever you're diffing is very long and 0 Timeout means that unlimited time can be taken to diff it.
Warning: During the Timeout, your browser might freeze temporarily till the diffing is complete. I'd suggest using Chrome to diff something if it's super long and you're using 0 Timeout. As a guage or something, I used about 30s for Timeout for
this. Can't remember it exactly. Maybe it was more :O
Anyway the most noticeable change is that I've added
color options!!! Blue and Red are the default colors. I can add more options if anyone finds a need for it~! Feel free to suggest more colors. :)
Anyway as for future plans, I'm going to make the diff app look nicer / style it up. If possible, I'd like to optimize the diffing process ie diff it part by part which might be faster for longer diffs. But my JavaScript knowledge is pretty limited now idk if I can do that >.> Still thinking of a way to escape and allow comments into the diff though! :O!!
Do post feedbacks/suggestions here or if there's any bug to it (I don't think so??) tl;dr just remember that your browser might freeze for a while if you increase timeout or set it to 0!! Have fun GPing! I hope this is a greater incentive to GP too, haha. :P