You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an issue but wanting to know how to achieve the same. We would like to show the diff between two files in two panes(i.e. like what we see in win merge with colour code to indicate if added or removed) and is this possible and if so if you could guide me to do the same it would be appreciated.
The text was updated successfully, but these errors were encountered:
I would think you'd want to do something along these lines:
print change objects representing preserved sections (i.e. ones where added and removed are both falsey) in both panes, with no background color
when you reach a sequence of change objects representing additions or removals, print the removals in the left pane with red background color, and the additions in the right pane with green background color, keeping track of how many you've printed, until you reach the next preserved section. Then add empty lines to whichever pane is shorter until the panes contain the same number of lines, and go to step 1.
This is not an issue but wanting to know how to achieve the same. We would like to show the diff between two files in two panes(i.e. like what we see in win merge with colour code to indicate if added or removed) and is this possible and if so if you could guide me to do the same it would be appreciated.
The text was updated successfully, but these errors were encountered: