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
|splitView |`boolean`|`true`|Switch between `unified` and `split` view. |
78
76
|disableWordDiff |`boolean`|`false`|Show and hide word diff in a diff line. |
79
77
|hideLineNumbers |`boolean`|`false`|Show and hide line numbers. |
80
78
|renderContent |`function`|`undefined`|Render Prop API to render code in the diff viewer. Helpful for [syntax highlighting](#syntax-highlighting)|
81
79
|onLineNumberClick |`function`|`undefined`|Event handler for line number click. `(lineId: string) => void`|
82
-
|hightlightLines|`array[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. |
80
+
|highlightLines|`array[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. |
83
81
|showDiffOnly |`boolean`|`true`|Shows only the diffed lines and folds the unchanged lines|
84
82
|extraLinesSurroundingDiff|`number`|`3`|Number of extra unchanged lines surrounding the diff. Works along with `showDiffOnly`.|
85
83
|codeFoldMessageRenderer|`function`|`Expand {number} of lines ...`|Render Prop API to render code fold message.|
0 commit comments