SyntaxEditor EOL (LineTerminator)

SyntaxEditor for WPF Forum

Posted 6 years ago by \アッカリーン/
Version: 13.1.0581
Avatar

Hey,

I was just wondering if there's a property in the editor that retains what EOL terminators were part of the document while/before it was being loaded. I realize the editor converts everything to \n's internally, but I'd like to preserve the EOL character(s) based on what file was loaded when/if the document's saved back out again. If I wrote separate code to check during the load process, I'd potentially have to scan the file twice.

Thanks

Comments (2)

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

Hello, the various document.LoadFile methods return the LineTerminator that they think was in use.


Actipro Software Support

Posted 6 years ago by \アッカリーン/
Avatar

I am blind. Thank you. I searched through the documentation but didn't see anything immediate. I really appreciate the quick response.

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

Add Comment

Please log in to a validated account to post comments.