Solved

Recognising languages

Posted on 2006-07-17
5
214 Views
Last Modified: 2010-04-23
Hi Experts,

I expect this is pretty difficult and way out of my league;

I would like a rich text box to recognise different languages (e.g. XML, HTML, VB). Not extensivley but on a simple scale. What i mean by recognise is convert the text to blue if a type is used (for vb) etc...

I dont want to write loads of code to do this manually. I was wondering if there was any option for this.

I am developing a text editor and would like to give the option to edit files in other formats.

Cheers,

Tom
0
Comment
Question by:TommyTwoPints
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:sagacitysolutions
ID: 17125583
Tommy,

Just a thought, If its an existing file you could determine by the file extension. If its a new file
why not allow the user to specify the format they are writing in.
0
 
LVL 3

Author Comment

by:TommyTwoPints
ID: 17125945
Hi Saga,

That; i already do.

I was wondering if there was any code out there that i could place in the RichTextBox.TextChanged event that would change colours of words according to types.

I could write the code myself, i was just wondering how to approach this or if it is already avaliable somewhere.

Cheers,

Tom
0
 
LVL 14

Expert Comment

by:Ramuncikas
ID: 17128352
0
 
LVL 14

Accepted Solution

by:
Ramuncikas earned 500 total points
ID: 17128367
This could be even more usefull:
http://pietschsoft.com/Blog/Post.aspx?PostID=491
0
 
LVL 3

Author Comment

by:TommyTwoPints
ID: 17128476
Thankyou for you answers;

I've found an xml file to base the styling on. I will smiliar methods shown in your second post Ramuncikas.

Thanks again
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question