Kompare

Kompare

Infobox_Software
name = Kompare
logo=


caption = A screen shot of Kompare
developer = The Kompare Team
operating_system = Unix-like
genre = Diff Tool
license = GPL
website = [http://www.caffeinated.me.uk/kompare/ www.caffeinated.me.uk/kompare]

Kompare is a free software graphical computer application which helps the user to compare two different text files or two directories. It is part of the KDE desktop environment and therefore primarily used on Linux and other Unix-like operating systems. Kompare does not actually compute the differences between the compared files itself, but is merely a graphical front end to the command line interface diff utility.

It is a standard KDE tool, it comes packaged with the kdesdk module.

Kompare was previously known as "kdiff".

Comparing text files

As the above image shows, Kompare displays the two compared files next to each other in a way that corresponding lines are always positioned as near to each other as possible, independent of the position of the scrollbar. Lines that are different in the compared files are highlighted in both file views. Three different colors are used for highlighting, indicating whether the highlighted passage either

* exists in the first file but not in the second one (ie. the highlighted passage has been "deleted" from the first file); "or"
* exists in the second file but not in the first one (ie. it has been "added" to the first file); "or"
* exists in both files but is different (ie. it has been "changed" since the first file had been created)

Other features of Kompare

An incomplete list of features Kompare supports additionally to comparing text files follows.

Comparing directories

When two directories are chosen to be compared instead of two text files, Kompare displays a directory tree for both selected directories, which contains only pairs of corresponding files and directories that are not equal in the two compared directories. Clicking on an entry displays a comparison of the two selected files.


= Creating and applying patches =

Kompare is able to create a patch file which lists only the differences between two compared text files A and B. Further, Kompare can apply a patch file which was created this way to an original file A and, in this manner, recompute the contents of the corresponding file B. This is a comfortable utility for passing a corrected version of a file to a friend who already has an older version of the same file, because only the (relatively small) patch file has to be delivered and the receiver can generate the corrected file by applying the patch to the original file.

The patches created and applied by Kompare are compatible to patch files generated or applied by the command line interface diff utility, because Kompare is in fact merely a graphical front end to diff and the patches are created and applied by patch, which gets called by Kompare.

See also

*Comparison of file comparison tools
*meld, [http://kdiff3.sourceforge.net/ KDiff3] - visualize differences very much like Kompare, but also allow merging files and editing details of the text.
*FileMerge presents file differences using a style very similar to Kompare.
*WinMerge, a similar free software tool for Microsoft Windows.

External links

* [http://www.caffeinated.me.uk/kompare/ Kompare Homepage]
* [http://www.kde-apps.org/content/show.php?content=19001 Kompare on kde-apps.org]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Kompare — est un logiciel libre de comparaison de textes travaillant sous Linux ou les systèmes de type Unix. Il permet de comparer des textes similaires, par exemple différentes versions d un code source, ou le brouillon d un article en cours de rédaction …   Wikipédia en Français

  • Kompare — Ein Bildschirmphoto von Kompare. Kompare ist ein freies Programm, welches dem Benutzer hilft, zwei Text Dateien oder Verzeichnisse miteinander zu vergleichen. Es ist ein Teil des K Desktop Environment (KDE) und wird hauptsächlich auf Linux und… …   Deutsch Wikipedia

  • kompáre — ta m (ȃ) nar. zahodno boter: kdo bo pa otroku kompare / kot nagovor kako se kaj imaš, kompare? …   Slovar slovenskega knjižnega jezika

  • kompare — s ( n, kompare, best. pl. komparna) VARD, MUSIK …   Clue 9 Svensk Ordbok

  • Comparison of file comparison tools — Contents 1 General 2 Compare Features 3 API / Editor Features 4 Other features 5 Aspects …   Wikipedia

  • Diff — ist ein Unix Programm, das synoptisch die Unterschiede zwischen zwei Textdateien zeilen bzw. abschnittweise einander gegenüberstellt. Inhaltsverzeichnis 1 Grundlagen 2 Programmfunktion 2.1 Aufruf 2.2 Ausgabe 3 Gesch …   Deutsch Wikipedia

  • WinMerge — Infobox Software name = WinMerge caption = WinMerge 2.7.x.x under Windows XP developer = WinMerge Development Team released = ? frequently updated = yes programming language = Visual C++ operating system = Microsoft Windows language =… …   Wikipedia

  • KDE-Programme — Für KDE wurde und wird eine große Zahl an benutzerfreundlichen Anwendungsprogrammen entwickelt. KDE ist eine freie Arbeitsumgebung, das heißt eine grafische Benutzeroberfläche mit vielen Zusatzprogrammen für den täglichen Gebrauch. Diese ist… …   Deutsch Wikipedia

  • Liste de logiciels KDE — Cet article est une liste de logiciels informatiques écrits pour l environnement de bureau KDE et triés par catégories. Les catégories qui sont utilisées ici sont pratiquement les mêmes que celles présentes dans KDE. Sommaire 1 Outils de… …   Wikipédia en Français

  • diff — ist ein Unix Programm, das die Unterschiede zwischen zwei Textdateien zeilen bzw. abschnittweise einander gegenüberstellt. Inhaltsverzeichnis 1 Grundlagen 2 Programmfunktion 2.1 Aufruf 2.2 A …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”