How to compare two files that have only numbers?



  • Currently, compare will tell me 0.0100 and 0.0101 are completely different lines even though they only differ by a digit. Is there a way for compare to high light the different digit only and label the line as “partially different”?



  • Hello @FQVBSina and All,

    In other words, I suppose that you would like something like the feature described in that post :

    https://community.notepad-plus-plus.org/topic/17546/compare-plugin-unable-to-turn-off-synchronize-vertical-scrolling-version-7-6-6-with-compare-v2/31


    If so, you could download a pre-release of the New ComparePlugin library of @Pnedev, which is, now, called ComparePlus

    Then, just follow the instructions of that post , below , in order to download the last ComparePlus.dll library :

    https://community.notepad-plus-plus.org/topic/17546/compare-plugin-unable-to-turn-off-synchronize-vertical-scrolling-version-7-6-6-with-compare-v2/36


    Notes :

    • Beware that the last build changed and is, now, the Build 507 and that is a pre-release of the future ComparePlus v1.0

    • Respect the organization of all files and folders, related to ComparePlus, as described in the tree

    • Preferably, delete your present Compare.ini file, in the Config folder

    • Restart N++ and enjoy the new ComparePlus plugin !

    • For your specific task, simply, check the option Detect Diffs on Character Level, in the menu Plugin > ComparePlus

    Best Regards,

    guy038



  • Exactly what I needed! Thanks!



  • Hi @guy038 and @FQVBSina ,

    Just one remark:
    If you are using ComparePlus dev version make sure your Notepad++ version is < 7.7 because the new Scintilla API changes after N++ 7.7 are not yet incorporated into CP and that might cause weird issues.

    @guy038 ,
    Thank you for the excellent description :)

    BR



  • Hi, @pnedev,

    Thanks for your warning and your kind words ! However, I’ve been using the last Notepad++ release v7.8.5, for about a month now, with ComparePlus.dll, build 488, without any trouble ;-))

    When elaborating my reply to @FQVBSina, I downloaded the penultimate version Build 506, from @AlexVerschoot, … … and I suppose you guess why I specifically chose that build, ah ah ! I ran tests with various regexes, + N++ v7.8.5, and it worked great, without any weird issue !

    Nevertheless, I like your idea of Advanced Ignore dialog, too ;-))

    I wish you a good end of development of your new ComparePlus plugin !

    Cheers,

    guy038



  • Hi again @guy038 ,

    I’ve been using the last Notepad++ release v7.8.5, for about a month now, with ComparePlus.dll, build 488, without any trouble

    Let me guess, x86 version? Just don’t use x64 one, problems are more likely to be visible there.

    I downloaded the penultimate version Build 506, from @AlexVerschoot, … … and I suppose you guess why I specifically chose that build, ah ah !

    Ha-ha-ha, I suspected you would do that ;))

    Nevertheless, I like your idea of Advanced Ignore dialog, too …

    Thank you!

    BR



  • @guy038 Hi, the latest compareplus version is 507 and I have notepad++ v7.8.5. When I try to import compareplus.dll, the application has no response and closing and reopening it shows no difference. I removed the old compare plugin and tried again and it still has no effect.

    Edit: I had to start notepad++ with administrator mode. It is all good now! Thanks for your help! And @pnedev thanks for the great plugin!



  • Hello ,@FQVBSina

    Folllow thia step,To How to compare two files that have only numbers?

    Step 1 :- Install Compare plugin

    Step 1 :-Open Notepad++ and Click on the ‘Plugins’ then ‘Plugins Admin’
    Step 2 :-A list of available plugins will appear
    Step 3 :-TIP: if the list is empty you need to check your Internet connection or 
                 proxy settings.
    Step 4:-  Either search or scroll until you see ‘Compare’
    Step 5:- Place a tick next to the name then click on the ‘Install’ button
    Step 6 :- Once the plugin is installed you will be prompted to restart Notepad++
    Step 7 :- Click ‘Yes’ to finish the install.
    

    Step 2: Compare two files using Notepad++ Compare plugin

       Step 1 :- Now that the Compare plugin has been installed, open two files
       Step 2 :- Click on the ‘Plugins’ menu then ‘Compare’ and ‘Compare’ again
       Step 3 :- The files will be displayed, side by side, with the differences 
                    highlighted
    
       Step 4 :- It helps to keep the ‘old’ copy of your file on the left and the ‘new’ on the right – this should help with understanding how the plugin shows the difference between files.
    

    I hope this information will be usefull.
    Thank you.


Log in to reply