469,082 Members | 1,122 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,082 developers. It's quick & easy.

Code Editor

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

Jul 17 '05 #1
1 1876
Well the RichText has a Text and RichText properties can contain plain text
and formatted text respectively. You can use those to manipulate Formatted
and unformatted text...

if you do a search in http://www.planet-source-code.com under the VB
category for Syntax highlighting you'll probably find a few examples that
can get you on your way.

--
Stéphane Richard
Senior Software and Technology Supervisor
http://www.totalweb-inc.com
For all your hosting and related needs
"Alan" <al**@nospam.ca> wrote in message
news:dm*********************@news02.bloor.is.net.c able.rogers.com...
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

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

71 posts views Thread by tomy_baseo | last post: by
67 posts views Thread by Steven T. Hatton | last post: by
9 posts views Thread by Saso Zagoranski | last post: by
40 posts views Thread by GTi | last post: by
135 posts views Thread by Xah Lee | last post: by
25 posts views Thread by doznot | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.