
Hello,
ow can i synchronize the vertical scrollbars from two syntaxeditor instances to develop a diff tool.
Can you help me to do this.
Regard
Frank
Hello,
ow can i synchronize the vertical scrollbars from two syntaxeditor instances to develop a diff tool.
Can you help me to do this.
Regard
Frank
Would Actipro provide a diff-merge tool? Personally, I see value in having one.
Hi Frank,
If you had two SyntaxEditor instances side-by-side, you'd first want to disable the "split" view capabilities of each. Then in the main view of each editor, you'd want to attach to their "SyntaxEditor.ActiveView.TextAreaLayout" events. That fires whenever a layout occurs, such as scrolling, text changes, etc. In response to that event, you'd make sure the views' FirstVisiblePosition property remains in sync. That should keep them scrolling together. Hope that helps!
Erwin, in regards to a diff implementation, thanks for the suggestion. We will write it down for possible future consideration. Have you seen any good C#-oriented examples of diff logic out there?
I am not too sure myself. Perhaps, this might be a good starting ground : http://menees.com
Please log in to a validated account to post comments.