Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/CloudIngenium.com/htdocs/wp-includes/functions.php on line 6114
How to Compare two files using NotePad++ – Knowledge eXchange

How to Compare two files using NotePad++

How to Compare two files using NotePad++

Notepad++ (Notepad plus plus) is a great file editing tool. Think of it as a replacement of Window’s notepad but with lots and lots of features. You can format XMLs, search and replace using REGEX, etc.

One of the features I like a lot is its ability to compare two files and look for differences. If you’ve used a version control program you know what I am talking about. Obviously this program is more targeted as a lightweight general use program (think putting it in all your workstations/servers). So if you are trying to look for a change in a system file after you perform an operation you just make a copy and have NotePad++ point the differences. I use it to test text replacing using REGEX as the eager/lazy functions if not used adequately cause unexpected results.

If you haven’t done so already download a copy of Notepad++ and follow this simple instructions:

  1. Install the Comparison plugin (do this first as it is going to ask you to restart the program)
    1. Go to Plugins > Plugin Manager > Show Plugin Manager
    2. In the Available tag look for Compare and install it.
    3. Restart Notepad++ as requested.
  2. Open up the two files that you want to compare in Notepad++.
  3. Go to Plugins > Compare > Compare
  4. Now both files will show up side by side and you will see the differences highlighted plus a third panel showing the results. Because it breaks the screen in 3 panels you can compare different files using the first two panels simply by opening the files and dragging them to the panel you wish to have them in.
Enhanced by Zemanta

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.