The results of [[DiffBuilder.find]]. It provides the results of the differences between two string.
It highlights those differences. The highlighting is done with HTML markup.
The Diff creates an HTML representation of the original String values
with differences highlighted. The highlighting is done with HTML markup and CSS
classes. These CSS classes can be redefined to alter the way the highlighting
appears. The line diff uses the following classes: diffLnAdd, diffLnDel, diffLnChange,
diffLnNone and diffChange. It also uses a "pre" class which replicates the effect of
the "pre" tag. All of the other diff varients use diffAdd, diffDel and diffNone for
highlighting. These classes represent added content, deleted content, changed content
and unchanged content. By default the diffLn[...] classes change background colors to
make new lines green, deleted lines red, changed lines blue and unchanged lines white.
The default diff[...] classes make added text bold and black, deleted text red with
strikethrough and unchanged text gray. The diffChange class makes text black and is
used by the line diff function to highlight lines that are changed, but are sufficiently
different that highlighting add/remove changes within a line would be impractical.
The results of [[DiffBuilder.find]]. It provides the results of the differences between two string. It highlights those differences. The highlighting is done with HTML markup.
The Diff creates an HTML representation of the original String values with differences highlighted. The highlighting is done with HTML markup and CSS classes. These CSS classes can be redefined to alter the way the highlighting appears. The line diff uses the following classes: diffLnAdd, diffLnDel, diffLnChange, diffLnNone and diffChange. It also uses a "pre" class which replicates the effect of the "pre" tag. All of the other diff varients use diffAdd, diffDel and diffNone for highlighting. These classes represent added content, deleted content, changed content and unchanged content. By default the diffLn[...] classes change background colors to make new lines green, deleted lines red, changed lines blue and unchanged lines white. The default diff[...] classes make added text bold and black, deleted text red with strikethrough and unchanged text gray. The diffChange class makes text black and is used by the line diff function to highlight lines that are changed, but are sufficiently different that highlighting add/remove changes within a line would be impractical.
Example