473,387 Members | 1,812 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,387 software developers and data experts.

Syntax highlighter or parser component (for VB, C#, SQL, etc)


Hi,

I am writing an application in C# that needs a memo control with the
capability of highlight certain syntax of programming languages, very
similar to what the Vs.Net does, or any language editor does. This should be
the type of control that can accepts different inputs, since I need to
display, VB, C# and SQL code, in nice highlighter colors.
It won't compile or anything, so I don't need grammar checking, just the
lexical tool.
Thanks in advance,

P.S. If this is not the appropiate newsgroup to post this request, can
anybody point me which is the correct newsgroup to post about 3rd party
components/controls ?

Nov 15 '05 #1
4 4502
Hi,

The SharpDevelop team have an editor. I have used there editor in source
form in my own projects and it works quite well.
http://www.icsharpcode.net. The editor is part of the #develop project.

Hope this helps

Chris Taylor
"Tim Conner" <ti*******@hotmail.com> wrote in message
news:O9***************@TK2MSFTNGP11.phx.gbl...

Hi,

I am writing an application in C# that needs a memo control with the
capability of highlight certain syntax of programming languages, very
similar to what the Vs.Net does, or any language editor does. This should be the type of control that can accepts different inputs, since I need to
display, VB, C# and SQL code, in nice highlighter colors.
It won't compile or anything, so I don't need grammar checking, just the
lexical tool.
Thanks in advance,

P.S. If this is not the appropiate newsgroup to post this request, can
anybody point me which is the correct newsgroup to post about 3rd party
components/controls ?

Nov 15 '05 #2
Or use Regex and try to add a lexical dictionary for what you need.

--
Horatiu Ripa

"Tim Conner" <ti*******@hotmail.com> wrote in message
news:O9*************@TK2MSFTNGP11.phx.gbl...

Hi,

I am writing an application in C# that needs a memo control with the
capability of highlight certain syntax of programming languages, very
similar to what the Vs.Net does, or any language editor does. This should be the type of control that can accepts different inputs, since I need to
display, VB, C# and SQL code, in nice highlighter colors.
It won't compile or anything, so I don't need grammar checking, just the
lexical tool.
Thanks in advance,

P.S. If this is not the appropiate newsgroup to post this request, can
anybody point me which is the correct newsgroup to post about 3rd party
components/controls ?

Nov 15 '05 #3

Horatiu :

Where do I find such "Regex" ?
A google search returned tons of different things.

Thanks in advance,


"Horatiu Ripa" <un****@businessco.us> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
Or use Regex and try to add a lexical dictionary for what you need.

--
Horatiu Ripa

"Tim Conner" <ti*******@hotmail.com> wrote in message
news:O9*************@TK2MSFTNGP11.phx.gbl...

Hi,

I am writing an application in C# that needs a memo control with the
capability of highlight certain syntax of programming languages, very
similar to what the Vs.Net does, or any language editor does. This
should be
the type of control that can accepts different inputs, since I need to
display, VB, C# and SQL code, in nice highlighter colors.
It won't compile or anything, so I don't need grammar checking, just the
lexical tool.
Thanks in advance,

P.S. If this is not the appropiate newsgroup to post this request, can
anybody point me which is the correct newsgroup to post about 3rd party
components/controls ?


Nov 15 '05 #4
Tom
The RegEx component in the .NET Framework should do fine. Just check the
documentation.
Tom Clement
Apptero, Inc.
"Tim Conner" <ti*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Horatiu :

Where do I find such "Regex" ?
A google search returned tons of different things.

Thanks in advance,


"Horatiu Ripa" <un****@businessco.us> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
Or use Regex and try to add a lexical dictionary for what you need.

--
Horatiu Ripa

"Tim Conner" <ti*******@hotmail.com> wrote in message
news:O9*************@TK2MSFTNGP11.phx.gbl...

Hi,

I am writing an application in C# that needs a memo control with the
capability of highlight certain syntax of programming languages, very
similar to what the Vs.Net does, or any language editor does. This

should
be
the type of control that can accepts different inputs, since I need to
display, VB, C# and SQL code, in nice highlighter colors.
It won't compile or anything, so I don't need grammar checking, just the lexical tool.
Thanks in advance,

P.S. If this is not the appropiate newsgroup to post this request, can
anybody point me which is the correct newsgroup to post about 3rd party components/controls ?



Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Tyler | last post by:
I've released the first proper version of my PHP/HTML syntax highlighter. This program takes HTML from a URL or a file, syntax highlights it and produces a web page containing the results. The...
8
by: Ken in Melbourne Australia | last post by:
If I use the curly bracket syntax (referred to as the complex syntax) within a string, how do I get to call a function within it? The php manual says that the first (or previous) character for...
4
by: Bob hotmail.com> | last post by:
Everyone I have been spending weeks looking on the web for a good tutorial on how to use regular expressions and other methods to satisfy my craving for learning how to do FAST c-style syntax...
2
by: Ludwig | last post by:
Hi, thanks to the insight that Kevin Spencer gave me concerning my regular expressions question from a few days ago, I managed to create a first version of my (free) Highlighter RichTextBox...
2
by: glomde | last post by:
Hi I would like to extend python so that you could create hiercical tree structures (XML, HTML etc) easier and that resulting code would be more readable. The syntax i would like is something...
4
by: frikker | last post by:
Hello, I have an idea for a project which involves an editor that supports syntax highlighting. This would be for any language, particularly php, html, css, etc. I would like to write this...
2
by: rockstar_ | last post by:
Hello all- I'm developing a Content Management software for my own site, and possibly package and deploy to other sites (for friends, family, etc.) The content management software is combined...
7
by: =?ISO-8859-1?Q?Une_B=E9vue?= | last post by:
i'm in search of an online syntax highlighter able to highlight either JavaScript, CSS or HTMl only or a whole page. the result would be shown on the page itself, on demand. -- Une Bévue
2
by: PJ6 | last post by:
Years ago I looked for a text editor control that would do automatic keyword highlighting, to no avail. I found sample code to roll my own, but all of that was crap (mostly because of the way the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.