Skip to content

Aiikon/TextDiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published