Solved

Recognising languages

Posted on 2006-07-17
5
209 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now