New track changes gutter band #122
Replies: 7 comments 3 replies
-
Great. Thanks |
Beta Was this translation helpful? Give feedback.
-
Just testing and can't get any other color than yellow. |
Beta Was this translation helpful? Give feedback.
-
Thank you, this was the point. Now it works all ok. |
Beta Was this translation helpful? Give feedback.
-
Looks very good! I think that the SynEdit.Gutter.TrackChanges.Visible property needs a setter that calls OnChanged. Right now I need to toggle Gutter.Visible in order to see the change. -Mark |
Beta Was this translation helpful? Give feedback.
-
Also changed default colors. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Thanks for this, I've been carrying those modifications forward for years. It's about time they made the mainline code. Cheers. |
Beta Was this translation helpful? Give feedback.
-
The repository now includes the implementation of a track changes gutter band similar to the on found in Visual Studio (see here).
The main SynEdit project does have an implementation, but line status is not updated during undo/redo.
How to use it
Gutter contains a new published property TrackChanges which controls the visibility and appearance of the Track Changes getter band. This property type is TSynTrackChanges defined as follows;
The constructor of TSynGutter creates a band of gbkTrackChanges kind, which by default is not visible.
Backward compatibility note
You need to manually add this band in existing forms that contain Synedit .
What it looks like
a) Displayed with the editor background
b) Displayed with the gutter background
Meaning of the colors (customizable)
Related SynEdit methods
Note that ClearUndo calls ClearTrackChanges
@JaFi-cz @MShark67 Please test and provide feedback.
Beta Was this translation helpful? Give feedback.
All reactions