In C# i am making a simple text editor with line numbers. I want to count the ammount of valid line breaks in a string.
i want to count
\r
\n
\r\n
How can i do this?
Or better yet, can someone point me to an article on how to line number an rtf box
Counting Lines – http://ryanfarley.com/blog/archive/2004/04/07/511.aspx
RTB With Line Numbers – http://www.xtremedotnettalk.com/showthread.php?s=&threadid=49661&highlight=RichTextBox