Text Comparator Utility using jQuery
CRANK

IntroductionAny reusable component, is not only helpful to solve the individual developer's problem but saves time and cost for the whole project/ team. One of the requirement was to built a component which can track the changes made by an admin within the publicly displayed information.BackgroundConsidering the criticality of such information, its always necessary for the other admin user/ reviewer to cross-verify the changes and review it properly before publishing it for the intended global audience. Especially, for such scenarios, the usability of any text comparator untility increases to many folds. Here is the working and very simple approach for developing such utilityUsing the codeThe pre-requisites are to download the below mentioned librairies:-1- jQuery Plugin i.e. PrettyTextDiff and2- Google's diff_match_patch libraryAdd these library references to the intended html document as mentioned below.<script src="Scripts/jquery.pretty-text-diff.min.js"></script> <script src="Scri…

codeproject.com
Related Topics: jQuery JavaScript