
Is there some built-in support in SyntaxEditor to normalize line endings and force line endings to be of a given type?
Is there some built-in support in SyntaxEditor to normalize line endings and force line endings to be of a given type?
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.
Please log in to a validated account to post comments.