Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 694 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 694 Bytes

TextDiff

A module for using DiffPlex to generate side by side or inline HTML diffs of text.

Utilizes a modified copy of the DiffPlex source code: https://github.com/mmanela/diffplex

Example Usage

$left = @"
ABC abc
DEF def
HIJ
KLM
"@

$right = @"
ABC abc
DEF DEF
KLM
XYZ
"@
Get-TextDiffSideBySideHtml -Left $left -Right $right | Out-File "~\Desktop\SideBySideSample.html"
& "~\Desktop\SideBySideSample.html"

Side by Side Sample

Get-TextDiffInlineHtml -Left $left -Right $right | Out-File "~\Desktop\InlineSample.html"
& "~\Desktop\InlineSample.html"

Inline Sample