I would like to try my hand at writing a "code" editing program. You know
the types - the ones with syntax highlighting and checking, spacing and tab
alignment.
What I don't quite understand is how to hold and manipulate the "code" being
worked upon. What do I store the code in? A string is limited in length.
I was thinking a RichText type perhaps? but how do you parse and work with
this in general terms? I mean to add syntax highlighting - do you add it in
then just before saving the "code" you strip this all back out?
Any guides/techniques is greatly appreciated. If you know of any simple
code that I could look at to learn from - that would be great too.
Thanks
Alan