creating editor

eran

Regular
Joined
Apr 12, 2003
Messages
66
Location
Israel
Hi, I need to create a very simple editor. it is not for .NET or any other known language. actually, it is for my company.

So, I am looking mostly for algorithm helping/implementing tips...
Mostly on how to make the editor recognising words, painting them, etc'...

any help would be thankfull.
 
Creating an editor can be quite a difficult task. www.icsharpcode.net have one as part of their open source IDE (however it is released under the GPL / LGPL so you cannot just lift their code, although you could license it from them, and they do take that very seriously.) however the text editor portion alone runs to approx 200K of source code.

If you search around these forums you will probably find several examples of how syntax highlighting etc can be implemented with the RichTextBox control.

If you insist on writing an editor from scratch the book writen by the sharpDevelop team (http://www.icsharpcode.net/OpenSource/SD/Default.aspx) does go into some of the trade offs of data structures used in the editor, or have a look at some of the following links (useful but can get a bit dry in places)

http://portal.acm.org/citation.cfm?id=4284.4288&dl=portal&dl=ACM
http://www.finseth.com/craft/index.html
http://www.cs.unm.edu/~crowley/papers/sds/node1.html
 
Back
Top