How do you show line numbers in a RichTextBox control?
-
Hello. I'm trying to make an IDE for a seperate programming language called DarkBASIC. Everything is going perfectly fine, but I'm trying to be able to show line numbers in the editor, which is a RichTextBox control. So is there a way to show the line numbers in a RichTextBox control? And if there isn't, is there an alternative?
ddawftwgvufyg eui wrote:
is there a way to show the line numbers in a RichTextBox control?
Not built-in AFAIK, but you can certainly add line numbers to the control's text. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
ddawftwgvufyg eui wrote:
I don't get it...
you did not get what? you did not get the link, it works. You wanted working code, well the article explains it. So what is that you did not get?
Yusuf
It's VB code - It makes C[...] programmers' eyes bleed. ;P
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
ddawftwgvufyg eui wrote:
I don't get it...
you did not get what? you did not get the link, it works. You wanted working code, well the article explains it. So what is that you did not get?
Yusuf
-
:laugh: I guess the OP has never seen a link before. :suss:
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
Hello. I'm trying to make an IDE for a seperate programming language called DarkBASIC. Everything is going perfectly fine, but I'm trying to be able to show line numbers in the editor, which is a RichTextBox control. So is there a way to show the line numbers in a RichTextBox control? And if there isn't, is there an alternative?
You could use the code text editor from SharpDevelop. It's packaged to be used separately. http://wiki.sharpdevelop.net/Using%20the%20texteditor.ashx[^] I used it for editing HTML in this[^] article, if you want to see an example.
---------------------------------- Be excellent to each other :)
-
It's VB code - It makes C[...] programmers' eyes bleed. ;P
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
You could use the code text editor from SharpDevelop. It's packaged to be used separately. http://wiki.sharpdevelop.net/Using%20the%20texteditor.ashx[^] I used it for editing HTML in this[^] article, if you want to see an example.
---------------------------------- Be excellent to each other :)
-
Hello. I'm trying to make an IDE for a seperate programming language called DarkBASIC. Everything is going perfectly fine, but I'm trying to be able to show line numbers in the editor, which is a RichTextBox control. So is there a way to show the line numbers in a RichTextBox control? And if there isn't, is there an alternative?
hai whats up!!!!!!!!!!! Can u tell me about the operating system before Vista other than XP
-
hai whats up!!!!!!!!!!! Can u tell me about the operating system before Vista other than XP