Class
OfficeDiffHtmlReport
OfficeIMO.Diff
Renders a standalone side-by-side HTML comparison of two texts.
Inheritance
- object
- OfficeDiffHtmlReport
Remarks
Lines are aligned with a line diff. Replaced lines are paired and the words that differ inside them are highlighted. The page has no scripts or external resources.
Methods
public static string SideBySide(string? oldText, string? newText, OfficeDiffHtmlOptions? options = null, CancellationToken cancellationToken = default) #Renders the comparison as a complete HTML document.
Parameters
- oldText string?
- newText string?
- options OfficeIMO.Diff.OfficeDiffHtmlOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
string