Description Usage Arguments Examples
Takes the diff of 2 files and shows comparisons
1 2 |
file1 |
First file to take diff (usually original file) |
file2 |
First file to take diff (usually updated file) |
contextSize |
Minimum number of lines of context to show around each diff hunk. (default: 3). |
minJumpSize |
Minimum number of equal lines to collapse into a “Show N more lines” link. (default: 10) |
wordWrap |
By default, code will go all the way to the right margin of the diff. If there are 60 characters of space, character 61 will wrap to the next line, even mid-word. To wrap at word boundaries instead, set this option. |
before |
Text to display on file1 |
after |
Text to display on file2 |
width |
passed to |
height |
passed to |
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.