how to code sourcecode editor with syntax hilighted and IntelliSense function

  • Thread starter Thread starter Yves Dhondt
  • Start date Start date
Y

Yves Dhondt

news.microsoft.com said:
Dear all,

I have to do a source code editor to implement syntax hilighted with special
colors , IntelliSense function.

Could anybody give me some tips or links?


Thanks,

Vince

Check out #develop (
http://www.icsharpcode.net/OpenSource/SD/Default.aspx ) it's an open
source editor which does everything you want. Learn from that code.

You could also check out old versions of codemax (you can find them on
yahoo groups) which are open source as well. Codemax is a C++
implementation and much harder to understand than #develop.

HTH

Yves
 
Dear all,

I have to do a source code editor to implement syntax hilighted with special
colors , IntelliSense function.

Could anybody give me some tips or links?


Thanks,

Vince
 
I'm not sure I understand you. The link I gave points to a syntax
highlighting control. It comes with standard languages pre-defined, but you
can fully configure the colours and style of highlighting, and add
intellisense of your choosing. What is it that you need to be able to do
that you don't think it would do for you? It could save a lot of coding.

Charles
 
Hi Vince

All the things you mention, it will do for you: line numbers, syntax
highlighting, intellisense functions, group functions.

You say "license", but you buy the product and then it is 'royalty' free.
You buy it only once.

For a long time I thought that I would prefer to have such things under my
own control, but there is a lot of good quality available at a very fair
price. If the control costs £300, and your rate is £30 per hour, you have
only ten hours in which to produce something as good before you lose money.
It can't be done.

I have no wish to try to teach my grandmother to suck eggs, but I would give
it serious thought before spending my own money on such a development, or
persuading my employer to employ me on such a mission when there are such
savings to be made.

Perhaps there is some other reason for re-inventing the wheel, but so far
this seems to be an excellent fit.

Charles
[My apologies for so wantonly mixing my metaphors]
 
Hi, Charles
the control you give me is a good product. but I should pay license for
using it :-(
and I have to develop a special source code editor with line number,
hilightling syntax, intenllisense function, maybe include group function. it
is better that I do all function from lower level although I should spend
much time on it.

Thanks again

Regards,
Vince
 
Definitely. We used Scintilla (http://www.scintilla.org/), which is free,
but has the downside of being unmanaged C++. It can be used with .NET
though. It took a lot of effort to get it to where we wanted it, and it
would have been a huge effort if we had to write the editing component
ourselves. Writing text editors is hard -- much much more than $300 hard.

Stu


Charles Law said:
Hi Vince

All the things you mention, it will do for you: line numbers, syntax
highlighting, intellisense functions, group functions.

You say "license", but you buy the product and then it is 'royalty' free.
You buy it only once.

For a long time I thought that I would prefer to have such things under my
own control, but there is a lot of good quality available at a very fair
price. If the control costs £300, and your rate is £30 per hour, you have
only ten hours in which to produce something as good before you lose money.
It can't be done.

I have no wish to try to teach my grandmother to suck eggs, but I would give
it serious thought before spending my own money on such a development, or
persuading my employer to employ me on such a mission when there are such
savings to be made.

Perhaps there is some other reason for re-inventing the wheel, but so far
this seems to be an excellent fit.

Charles
[My apologies for so wantonly mixing my metaphors]


news.microsoft.com said:
Hi, Charles
the control you give me is a good product. but I should pay license for
using it :-(
and I have to develop a special source code editor with line number,
hilightling syntax, intenllisense function, maybe include group
function.
it
is better that I do all function from lower level although I should spend
much time on it.

Thanks again

Regards,
Vince


but
you
 
Hi Charles,

I agree with you------- buying good and suitable product will save time and
money. :-)

I will reconsider it thoroughly......

Thanks,

Vince from Shanghai, China


Charles Law said:
Hi Vince

All the things you mention, it will do for you: line numbers, syntax
highlighting, intellisense functions, group functions.

You say "license", but you buy the product and then it is 'royalty' free.
You buy it only once.

For a long time I thought that I would prefer to have such things under my
own control, but there is a lot of good quality available at a very fair
price. If the control costs £300, and your rate is £30 per hour, you have
only ten hours in which to produce something as good before you lose money.
It can't be done.

I have no wish to try to teach my grandmother to suck eggs, but I would give
it serious thought before spending my own money on such a development, or
persuading my employer to employ me on such a mission when there are such
savings to be made.

Perhaps there is some other reason for re-inventing the wheel, but so far
this seems to be an excellent fit.

Charles
[My apologies for so wantonly mixing my metaphors]


news.microsoft.com said:
Hi, Charles
the control you give me is a good product. but I should pay license for
using it :-(
and I have to develop a special source code editor with line number,
hilightling syntax, intenllisense function, maybe include group
function.
it
is better that I do all function from lower level although I should spend
much time on it.

Thanks again

Regards,
Vince


but
you
 
Back
Top