WebVize's WebLog

An independent C# Developer in the Netherlands

R&D Phase. Syntax hightlighted editing in IE

As I want to make a complete new framework for the Kids Community and I got the complete free hand in it. (Although it needs to be finished the end of June, and this is not my only project).

I didn't like the textbox for script and object generation templates I started to look at how SharpDeveloper had the syntax highlighting in their editor. I noticed that this is a independent dll so I opened up the source code for it and added a new user control :-)

 

This usercontrol holds the SharpDeveloper control with some settings. It seemed not possible to set them through some java script. Now I indeed can incorporate the control inside IE. Editing and saving the text. The text is put inside a hidden field on form submit and loaded on form load. I needed to make some adjustments in the property Text to keep the line breaks and other stuff so that the java script doesn't break.

 

It really looks cool but I must keep in mind that I am building an internet application and that only a few very specific functionalities should be build in this manner. Darn.. I like this too much. Why couldn't we program a web app as we would do a win form.

 

Please any hints and tips are welcome!

Comments

Frans Bouma said:

Look into the license agreement of the control, if I'm not mistaken it's GPL-ed, so be aware of the GPL-clauses related to your own work.
# February 22, 2004 9:39 AM

Michael Hensen said:

Frans,thanks for pointing this out for me..

Do you perhaps have any clue how this GPL would affect me as I build an application (not for reselling) but still I am payed to build the application?
# February 22, 2004 10:13 AM

Michael Hensen said:

Frans pointed me on the GPL clauses of my usage of some of the controls.

I have placed my question on their site. Hopefully they can clearify this.


As asked on ISharpCode.net:
As I like the syntax coloring from the Editor I would like to incorporate this as a winform control in a asp.net application so I can syntax color the template code. This application is a for one of my clients and not for reselling. How does the GPL apply to this or how to get permission to use this component. I need to make some minor adjustments to make this work correctly in IE.

My companyname is WebVize. I am owner and only employee in this company.

Please advice me in this.

Kind regards,

Michael Hensen
Webvize
# February 22, 2004 10:30 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)