Editor.Document.CurrentSnapshot.GetText() returns the current text where new lines are \n characters rather than the usual \r\n.
Is there a specific reason for this behavior? Is it possible to act on some parameter to restore the usual behavior?
Thanks,
marc.
Stenly
Telerik team
commented on 26 Mar 2024, 04:31 PM
Hello Marcello,
The use of the '\n' character as a new line character is a design decision taken for performance reasons when the RadSyntaxEditor control was initially designed. Additionally, while developing the control, there wasn't a case where the "\r\n" was required for a new line.
With this being said, before continuing, may I ask if you could give a bit more information about the scenario on your end and the need for using "\r\n" for a new line?
Hello Marcello,
The use of the '\n' character as a new line character is a design decision taken for performance reasons when the RadSyntaxEditor control was initially designed. Additionally, while developing the control, there wasn't a case where the "\r\n" was required for a new line.
With this being said, before continuing, may I ask if you could give a bit more information about the scenario on your end and the need for using "\r\n" for a new line?