Skip to content
IzzyBlazor 0.1.0-alpha.20

Enter all results ↑ ↓ move Esc close

Diff

Since 0.1.0-alpha.20
The lines two texts differ by, unified or side by side.

IzzyBlazor.Diff in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.20 assembly and its doc comments.

Properties (15)

OldTextstring?Added in 0.1.0-alpha.20

The old text. Line ends \n, \r\n and \r all count as one.

NewTextstring?Added in 0.1.0-alpha.20

The new text.

LinesIReadOnlyList<DiffLine>?Added in 0.1.0-alpha.20

A diff computed elsewhere, such as by Compare, in place of OldText and NewText: every line of both texts, in order.

Languagestring?Added in 0.1.0-alpha.20

The language, such as "xml", "csharp" or "json": colors the lines as Code does, when the highlighter knows it (see Languages).

Highlightbool = trueAdded in 0.1.0-alpha.20

Colors the lines by Language. Defaults to true.

Titlestring?Added in 0.1.0-alpha.20

A file name or caption, such as "rules.xml" or "v3 → v4", in a header row above the lines.

LayoutDiffLayout = DiffLayout.UnifiedAdded in 0.1.0-alpha.20

DiffLayout.Unified (the default): one column, removed lines before added. DiffLayout.Split: the old text beside the new, shown as unified where the diff is narrower than 45rem.

Contextint = 3Added in 0.1.0-alpha.20

The unchanged lines kept on each side of a change when the rest are folded. Defaults to 3.

Foldbool = trueAdded in 0.1.0-alpha.20

Folds runs of unchanged lines away from the changes into a row that opens them. Defaults to true.

MarkWordsbool = trueAdded in 0.1.0-alpha.20

Marks the changed words of a removed line and the added line paired with it. Defaults to true. A pair isn't marked when less than half of the longer line is unchanged.

LineNumbersbool = trueAdded in 0.1.0-alpha.20

Shows the old and new line numbers. Defaults to true. They aren't selected or copied with the lines.

MaxHeightLength?Added in 0.1.0-alpha.20

The tallest the lines get before they scroll, such as Length.Rem(30).

MaxChangesint = 1000Added in 0.1.0-alpha.20

The most lines removed and added to look for. Texts that differ by more show TooManyText. Defaults to 1,000.

SameTextstring?Added in 0.1.0-alpha.20

Shown when the two texts are the same. Defaults to "The two texts are the same."

TooManyTextstring?Added in 0.1.0-alpha.20

Shown when the texts differ by more than MaxChanges lines.

Events (0)

No events.

Types (3)

DiffLayout

enum

How a Diff lays out the two texts.

DiffLayout values
ValueDescription
Unified

One column: each change's removed lines, then its added lines.

Split

The old text beside the new, each line beside the one it became; unified where the diff is narrow.

DiffLine

record

A line of a diff.

DiffLine members
MemberDescription
Kind DiffKind

Which texts have it.

OldNumber int?

Its number in the old text, from 1. Null for a line added.

NewNumber int?

Its number in the new text, from 1. Null for a line removed.

Text string

The line, without its end.

Length

struct

A width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.

Length members
MemberDescription
Sm

640px (matches the sm breakpoint).

Md

768px (matches the md breakpoint).

Lg

1024px (matches the lg breakpoint).

Xl

1280px (matches the xl breakpoint).

Prose

A comfortable reading width, 68 characters.

Full

100% of the containing block.

Auto

auto.

FitContent

fit-content: as wide as the content, up to the available space.

MinContent

min-content.

MaxContent

max-content.

Px(double value)

Pixels.

Rem(double value)

Root ems (16px each by default).

Percent(double value)

Percent of the containing block.

Ch(double value)

Character widths, for text measures.

Vw(double value)

Percent of the viewport width.

Dvh(double value)

Percent of the dynamic viewport height (accounts for mobile browser bars).

Of(string css)

Any CSS length, such as calc(100% - 2rem). Checked for unsafe characters.

Css string

The CSS value this length renders as.

Connection lost

Rejoining the server…