I’m thinking of developing a more efficient version of the Rich Text format but I need to know a little about Syntax Highlighting and Syntax Extraction.
Like when reading the file, read all the {Property Boxes} and use them in a RichTextBox.
Ex:
{C=0000FF}Hello world!{/C}
Prints “Hello world!” in red.
This would also be good to figure out because I am also building acode editor for a very simple version of Python and color codded text would make things easier and seems pretty standard.
There’s a codeproject article about this called Syntax highlighting textbox written in C# which might give you some pointers.
And in case you’re going to use a
RichTextBoxI’d suggest this blog post Some RichTextBox tricks .It might be worth trying to get hold of the book
Dissecting a C# Application: Inside SharpDevelopwhich has a chapter calledChapter 9: Syntax Highlighting(quite old book but might be able to get a second hand copy).