Normalize Line Endings

SyntaxEditor for WPF Forum

Posted 7 years ago by tobias weltner
Version: 17.1.0651
Avatar

Is there some built-in support in SyntaxEditor to normalize line endings and force line endings to be of a given type?

Comments (1)

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

Hi Tobias,

SyntaxEditor always normalizes the line endings to \n when text is loaded.  This makes it easier for lexers/parsers to work with text.  When you export text or text substrings back out of the document, you have the option via methods like document.CurrentSnapshot.GetText or GetSubstring to select a specific line terminator kind.


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.