Extras

from Wikipedia, the free encyclopedia
Extras

Kompare icon.svg
Kompare.png
Basic data

Current  version 04/20/2
( June 11, 2020 )
operating system unixoid system
programming language C ++
License GNU General Public License
www.caffeinated.me.uk/kompare/

Kompare is a free program which helps the user to compare two text files or directories with each other. It is part of the K Desktop Environment (KDE) and is mainly on Linux and other Unix -like operating systems used. Kompare uses diff to calculate the differences. diff is a command line - program and are the differences in writing from.

Compare text files

As the picture above shows, Kompare tries to display the two text files side by side in such a way that the lines that belong together are always displayed as close as possible to each other, depending on the position of the scroll bar . Lines that distinguish the two documents from each other are highlighted in both views. Three different colors / display options are used for this:

  • exists in the first file but not in the second (ie the highlighted passage has been deleted from the first file ); or
  • exists in the second file but not in the first (ie added to the second file ); or
  • exists in both files, but with differences (i.e. changed since the first file was created)

Compare directories

If two directories are to be compared with one another instead of two text files, Kompare shows a directory tree for the two selected directories.

Create and apply patches

Kompare can create patch files which only list the differences between two text files A and B. Kompare can also apply a patch file that was created in this way to file A. In this way, the contents of file B can be restored to file A. This is a convenient way of converting an old version of a file into a newer / improved version, as only the actual changes (the patch file) need to be applied. With this system, when are Unix -like operating systems patches recorded when programs from source code compiles and does not have a package management system have been installed.

The patches created with Kompare are compatible with patch files created with the command line program diff , because Kompare is mainly a graphical front end for the command line programs diff and patch .

Complementary programs

Meld and KDiff3 allow the visualization of differences like Kompare, in addition it is also possible for the user to merge files and edit details of the text. Kompare, for his part, was not programmed to edit or merge texts.

Web links

  1. Release 20.04.2 . June 11, 2020 (accessed June 16, 2020).
  2. The kompare Open Source Project on Open Hub: Languages ​​Page . In: Open Hub . (accessed on July 14, 2018).