Programatically turn yellow line change indicators to green

SyntaxEditor for WPF Forum

Posted 6 years ago by Gergely Bacsó
Version: 18.1.0671
Avatar

Hi,

I have an MVVM mechanism that saves the SyntaxEditor's document.
Is it possible to programatically turn the yellow line indicator markers to green without calling Document.SaveFile()?

Thank you,
Gergely

Comments (3)

Answer - Posted 6 years ago by Gergely Bacsó
Avatar

OK, just got it right after asking the question:

Document.IsModified = false;

Posted 6 years ago by Sharon Gal-Ed
Avatar

Hi,

Setting the Document.IsModified to false changes the modified lines indications in the EditorSelectionMargin from yellow to green.

But undo and redo leaves the indications green.

Is it possible that after redo/undo the changed lines will apper as unsved ?

I am working with actipro 2015.1.624.

 

Thanks

Sharon

I am ork

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello Sharon,

We heavily refactored the line modification mark feature in the 2016.1 feature.  It properly restores unchanged/changed lines with undo/redo after that, and also introduces an orange mark (reverted changes) for going past the save point similar to how Visual Studio does it.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.