Get lines modified within the syntaxEditor

SyntaxEditor for WPF Forum

Posted 2 years ago by Frederic Gregoire
Version: 17.1.0652
Avatar

Hello,

This has probably already been asked, but is there a built in way of getting the lines that have been modified within the syntax editor?
In other words, all the lines that have a yellow indicator for in the margin?

Thanks. 

Comments (3)

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

Hi Frederic,

The document.UndoRedo.GetChangeTypeForLineRange method can be used to determine the kind of modified state.  You could call it once for each line to determine which ones have been modified.


Actipro Software Support

Posted 2 years ago by Frederic Gregoire
Avatar

I have some files of 150MB, and while what you say should work, I don't think it is optimal in my situation. Is there no hashset containing the modified lines or a more optimal way of doing so?

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

The underlaying data is a bit complex so unfortunately that's the only way to access it.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.