I need a certain portion of my text in RTB to be highlighted not in the sense of changing the font style/color, but in the sense of making a block selection with a particular color. This is similar to how Visual Studio highlights a line during debug mode.
How can I accomplish this feature using RTB or rather, is it even possible? If it isn’t possible, I’d like to hear another way of performing the above task.
I think you are looking for ScintillaNET.
On the other hand if you want to do this by yourself in RTB then you can do it by first finding the
lineNumberusing TextBoxBase.Lines property. Then …