You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,8 @@ class Diff extends PureComponent {
76
76
| compareMethod |`DiffMethod`|`DiffMethod.CHARS`| JsDiff text diff method used for diffing strings. Check out the [guide](https://github.com/praneshr/react-diff-viewer/tree/v3.0.0#text-block-diff-comparison) to use different methods. |
77
77
| renderGutter |`(diffData) => ReactNode`|`undefined`| Function that can be used to render an extra gutter with various information next to the line number. |
78
78
| hideLineNumbers |`boolean`|`false`| Show and hide line numbers. |
79
-
| alwaysShowLines |`string[]`|`[]`| List of lines to always be shown, regardless of diff status. Line number are prefixed with `L` and `R` for the left and right section of the diff viewer, respectively. For example, `L-20` means 20th line in the left pane. `extraLinesSurroundingDiff` applies to these lines as well. |
79
+
| hideMarkers |`boolean`|`false`| Show and hide `+`/`-` markers. |
80
+
| alwaysShowLines |`string[]`|`[]`| List of lines to always be shown, regardless of diff status. Line number are prefixed with `L` and `R` for the left and right section of the diff viewer, respectively. For example, `L-20` means 20th line in the left pane. `extraLinesSurroundingDiff` applies to these lines as well. |
80
81
| renderContent |`function`|`undefined`| Render Prop API to render code in the diff viewer. Helpful for [syntax highlighting](#syntax-highlighting)|
81
82
| onLineNumberClick |`function`|`undefined`| Event handler for line number click. `(lineId: string) => void`|
82
83
| highlightLines |`string[]`|`[]`| List of lines to be highlighted. Works together with `onLineNumberClick`. Line number are prefixed with `L` and `R` for the left and right section of the diff viewer, respectively. For example, `L-20` means 20th line in the left pane. To highlight a range of line numbers, pass the prefixed line number as an array. For example, `[L-2, L-3, L-4, L-5]` will highlight the lines `2-5` in the left pane. |
0 commit comments