| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
| permalink | fileDiff.html |
|---|---|
| layout | default |
| mainAnchor | fileDiff |
| title | File Diff View |
| subtitle | Comparing and editing text files side by side |
The file diff view shows two text files side by side with their differences highlighted. You can copy or delete lines to resolve differences and save the result.
{:.wiki-img}
① Scope bar — controls which lines are shown and toggles whitespace visibility. See Scope Bar.
② Diff panels — the two file contents shown side by side. Each line is color-coded; see Colors Legend.
③ Difference indicator — the narrow strip on the right side gives a bird's-eye view of all differences in the file. Click anywhere on it to jump to that area. See Colors Legend.
④ Info bar — shows per-file metadata and lets you change the file encoding. See Info Bar.
The scope bar has two independent controls.
Show Whitespace — when active, space, tab, and line-ending characters are drawn as visible symbols. This is particularly useful when comparing files with different line-ending conventions: Unix (LF) lines end with ¶, while DOS (CR+LF) lines end with ¤. With Show Whitespace enabled, the end-of-line markers are visible on every line, making it immediately clear which convention each file uses and where the two differ.
The filter group is mutually exclusive:
| Segment | Shows |
|---|---|
| All | Every line in the file |
| Just Differences | Only lines that differ between left and right |
| Just Matches | Only lines that are identical on both sides |
Each panel has an info bar at the bottom showing:
These are the core editing actions. Select one or more lines first, then use the Actions menu:
After a copy or delete the affected panel is marked as modified. Save it with the Save button in the path bar above the panel, or via the standard File → Save.
A section is a contiguous block of differing lines. Two shortcuts in the Edit menu speed up selection:
View → Show Details opens a panel below the diff tables that shows the selected line. Hide it again from the same menu item or from the right-click menu inside the panel.
Line-ending characters are always shown in the Details panel, even when Show Whitespace is off. Unix lines end with ¶, DOS lines end with ¤. This makes it easy to identify the source of a difference that looks identical at first glance.
Use the toolbar buttons (or the View menu) to move between differences:
Open the session preferences with the toolbar button or the Actions menu. The Comparison tab contains options that affect how differences are computed for this file pair.
{:.wiki-img}
| Option | Effect |
|---|---|
| Ignore Line Endings (DOS/Mac) | Files that differ only in CR+LF vs LF vs CR are treated as identical |
| Ignore Leading Whitespace | Spaces and tabs at the start of a line are ignored |
| Ignore Trailing Whitespace | Spaces and tabs at the end of a line are ignored |
| Ignore Internal Whitespace | Sequences of spaces and tabs within a line are treated as equivalent |
| Ignore Character Case | Uppercase and lowercase letters are treated as identical |
Changing any option triggers a recompare automatically.
| Back | FazBrowse Home | New Git URL |