473,324 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 1967
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

71
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's...
67
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
9
by: Saso Zagoranski | last post by:
Hi! I have recently completed an application, written in C#. When I opened one of the files with a hex editor I was amazed by the lack of protection for the assemblies. My application uses SQL...
2
by: Dica | last post by:
this is related to an earlier question i had. i'm trying to figure out visual studio 2003 and c#. i started a simple app to try to learn the basics and used many of the wizards to set up things...
40
by: GTi | last post by:
Is there any source code documentation tools available for Visual Studio 2005 ? I have created a LIB that must be documented. Must I do it by hand or is it some kind of tools to pre document my...
2
by: bdtmike | last post by:
I'm using VS2005 and am getting messages that my files have been modified outside of the source editor. I'm working with a web project, data sources, and a web service. Things I'm noticing that...
135
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about...
13
by: Bryan | last post by:
I am developing a VB project in VS2005 that has SP2 installed. This is the process that is causing a problem: Open VS2005, open the project Write some code in the code editor Run the project in...
13
by: frk.won | last post by:
I am interested in learning how to use the VS 2005 code snippets. However, I wish to know what are the best ways to source control the code snippets? Are there any source safe/subversion...
25
by: doznot | last post by:
Let's say you want to use Moodle to teach an introductory class in PHP programming. Some of the students have little or no computer experience. In addition to background reading and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.