@@ -24,8 +24,8 @@ Diff to Html generates pretty HTML diffs from unified and git diff output in you
2424-  [ Setup] ( #setup ) 
2525-  [ Usage] ( #usage ) 
2626  -  [ Custom HTML wrapper template] ( #custom-html-wrapper-template ) 
27-   -  [ Examples: ] ( #examples ) 
28- -  [ Contributions ] ( #contributions  ) 
27+   -  [ Examples] ( #examples ) 
28+ -  [ Contribute ] ( #contribute  ) 
2929-  [ Developing] ( #developing ) 
3030-  [ License] ( #license ) 
3131-  [ Thanks] ( #thanks ) 
@@ -61,29 +61,31 @@ Diff to Html generates pretty HTML diffs from unified and git diff output in you
6161
6262## Setup  
6363
64-     npm install -g diff2html-cli 
64+ ``` sh 
65+ npm install -g diff2html-cli
66+ ``` 
6567
6668## Usage  
6769
68- Usage: diff2html [ options]  -- [ diff args ] 
70+ Usage: diff2html [  flags and/or  options  ]  -- [ git  diff passthrough flags and options ] 
6971
7072|  flag  |  alias                    |  description                                                                |  choices                      |  default   | 
7173|  ----- |  ------------------------ |  -------------------------------------------------------------------------- |  ---------------------------- |  --------- | 
7274|  -s    |  --style                  |  Output style                                                               |  ` line ` , ` side `                |  ` line `     | 
7375|  --sc  |  --synchronisedScroll     |  Synchronised horizontal scroll                                             |  ` true ` , ` false `               |  ` true `     | 
7476|  --hc  |  --highlightCode          |  Highlight code                                                             |  ` true ` , ` false `               |  ` true `     | 
7577|  --su  |  --summary                |  Show files summary                                                         |  ` closed ` , ` open ` , ` hidden `    |  ` closed `   | 
76- |  --d    |  --diffStyle              |  Diff style                                                                 |  ` word ` , ` char `                |  ` word `     | 
78+ |  -d     |  --diffStyle              |  Diff style                                                                 |  ` word ` , ` char `                |  ` word `     | 
7779|  --lm  |  --matching               |  Diff line matching type                                                    |  ` lines ` , ` words ` , ` none `      |  ` none `     | 
7880|  --lmt |  --matchWordsThreshold    |  Diff line matching word threshold                                          |                               |  ` 0.25 `     | 
7981|  --lmm |  --matchingMaxComparisons |  Diff line matching maximum line comparisons of a block of changes          |  ` 2500 `                        | 
80- |  --hwt |  --htmlWrapperTemplate    |  Path to custom template to be rendered when using the ` html `  output format |  _ [ string] _                    | 
82+ |  --hwt |  --htmlWrapperTemplate    |  Path to custom template to be rendered when using the ` html `  output format |  ` [string] `                    | 
8183|  -f    |  --format                 |  Output format                                                              |  ` html ` , ` json `                |  ` html `     | 
8284|  -i    |  --input                  |  Diff input source                                                          |  ` file ` , ` command ` , ` stdin `    |  ` command `  | 
8385|  -o    |  --output                 |  Output destination                                                         |  ` preview ` , ` stdout `           |  ` preview `  | 
8486|  -u    |  --diffy                  |  Upload to diffy.org                                                        |  ` browser ` , ` pbcopy ` , ` print `  |            | 
85- |  -F    |  --file                   |  Send output to file (overrides output option)                              |  _ [ string] _                    |            | 
86- |  --ig  |  --ignore                 |  Ignore particular files from the diff                                      |  _ [ string] _                    |            | 
87+ |  -F    |  --file                   |  Send output to file (overrides output option)                              |  ` [string] `                    |            | 
88+ |  --ig  |  --ignore                 |  Ignore particular files from the diff                                      |  ` [string] `                    |            | 
8789|  -v    |  --version                |  Show version number                                                        |                               |            | 
8890|  -h    |  --help                   |  Show help                                                                  |                               |            | 
8991
@@ -97,13 +99,13 @@ they are here:
9799
98100-  Inside the ` <head> `  tag
99101
100- ``` 
102+ ``` html 
101103<link  rel =" stylesheet"   href =" https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/github.min.css"   />
102104<!-- diff2html-css--> 
103105<!-- diff2html-js-ui--> 
104106<script >
105-   document.addEventListener(" DOMContentLoaded" , () => { 
106-     const targetElement = document.getElementById(" diff" ); 
107+   document .addEventListener (' DOMContentLoaded'  , () =>  { 
108+     const  targetElement  =  document .getElementById (' diff'  ); 
107109    const  diff2htmlUi  =  new  Diff2HtmlUI (targetElement); 
108110    // diff2html-fileListToggle 
109111    // diff2html-synchronisedScroll 
@@ -114,13 +116,13 @@ they are here:
114116
115117-  Inside the ` <body> `  tag
116118
117- ``` 
119+ ``` html 
118120<div  id =" diff"  >
119121  <!-- diff2html-diff--> 
120122</div >
121123``` 
122124
123- ### Examples:   
125+ ### Examples  
124126
125127` diff2html -s line -f html -d word -i command -o preview -- -M HEAD~1 ` 
126128
@@ -153,7 +155,7 @@ they are here:
153155
154156_ NOTE_ : notice the ` -- `  in the examples
155157
156- ## Contributions  
158+ ## Contribute  
157159
158160This is a developer friendly project, all the contributions are welcome. To contribute just send a pull request with
159161your changes following the guidelines described in ` CONTRIBUTING.md ` . I will try to review them as soon as possible.
@@ -164,7 +166,7 @@ Make some changes, `yarn build` and then `./bin/diff2html` 😉
164166
165167## License  
166168
167- Copyright 2014-2019  Rodrigo Fernandes. Released under the terms of the MIT license.
169+ Copyright 2014-present  Rodrigo Fernandes. Released under the terms of the MIT license.
168170
169171## Thanks  
170172
0 commit comments