Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeDiffHtmlReport

OfficeIMO.Diff

Namespace
OfficeIMO.Diff
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

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? required
newText string? required
options OfficeIMO.Diff.OfficeDiffHtmlOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

string