The diff highlighting feature is used to display a unified diff version of the source
code. Having cached the latest source code before the change, on a new change detected,
a unified diff between these two will be displayed in the Code Preview tab.
There are currently 3 diff styles available:
Line Margins Highlight - will display the changes only in the overview
ruler, green meaning new line added, blue meaning a change in this line, and
underline red meaning a line was removed. The effective source diffs are
displayed when you hover over a color from the overview ruler. The source code
remains unmodified, meaning that the diff will not interfere with the source
code, which will allow the user the option to copy paste the source code from
the Code Preview tab.
Figure 1. Line Margins Highlight Green
Figure 2. Line Margins Highlight Red
Full Lines Highlighting - will display as a git-like the unified diff.
The removed line will still be shown in the source code, but with a "-" sign at
the beginning of the line and with a red background. The added lines are
displayed with a "+" sign at the beginning of the line and with a green
background. A change inside a line will be displayed with a removed line that
represents the old version and with an added line that represents the new
version.