Get lines modified within the syntaxEditor

SyntaxEditor for WPF Forum

Posted 7 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 7 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 7 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 7 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 (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.