Diff text files

P4V lets you compare text files and image files to navigate their differences. To do a diff on the selected files, P4V launches P4Merge. The purple icon (file1) is associated with the first file you selected, and purple bands highlight text that is in the first file but not the second file. The green icon (file2) is associated with the second file you selected, and green bands highlight text that is in the second file but not the first file.

By default, P4Merge displays diffs in a side-by-side layout. However, you may prefer to view changes closer to each other. In this case, you can switch to single-pane layout. To display diffs in a single pane, go to View > Single Pane Diff Layout. In single-pane mode, deleted text is shown using strike-through text.

To toggle the display of line numbers, click linenumbers.

For more information, see Navigate diffs in the P4Merge User Guide.