<< Click to Display Table of Contents >> Navigation: IWML > Tags > Controls > DiffViewer |
The DiffViewer control displays multi-line text with optional visual diff highlighting. It is especially useful for showing code changes, configuration differences, or version comparisons.
Each line is passed through the Lines property. If a line begins with a + or -, it is rendered in a special style to indicate additions and deletions respectively:
•Lines starting with + are highlighted in blue and bolded.
•Lines starting with - are highlighted in red and struck through.
Other lines are rendered as plain text.
Syntax:
DiffViewer[:Name]
Lines: [array of lines]
•Name – optional ID to reference in logic.
•Lines – array of strings; each string represents a line.
Properties:
•Lines – a string array property containing the lines to be displayed. This property supports diff-like prefixes (+, -).
Try It
DiffViewer:Changes
Lines:
Unchanged line
+Added line
-Removed line
]
]