# OfficeDiffHtmlReport

Renders a standalone side-by-side HTML comparison of two texts.

Class 

`OfficeIMO.Diff`

**Namespace**

`OfficeIMO.Diff`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeDiffHtmlReport.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeDiffHtmlReport.cs#L36)

**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.

Filter members 

Show inherited

## Methods

`public static string SideBySide(string? oldText, string? newText, OfficeDiffHtmlOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-sidebyside-string-string-officeimo-diff-officediffhtmloptions-threading-cancellationtoken)

[OfficeDiffHtmlReport.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeDiffHtmlReport.cs#L36)

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`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:11A08B13A2D155769245F5CEB6CB5D18E2289E6BBB79B189799DB3958C68E2FA -->
