views:

57

answers:

2

I am a new C# student programmer. I want to make a editor like application which will highlight codes (syntax highlighting) and have auto complete feature for functions variables etc... I don't have any idea to do that. Can you please provide me some tutorial links or some tips about that? Can I implement these features in a "Rich Text Box"?

+3  A: 

The text editor component from the open source SharpDevelop IDE can be freely downloaded and used. This supports all your requirements. See http://www.codeproject.com/KB/edit/TextEditorControl.aspx for an explanation on how this can be done.

Pieter
Source code is not working in Visual Studio 2010. Why? Can you please explain?
chanchal1987
@Chanchal1987: i've been added and used that in VS2010... without any problem...
Dr TJ
@Chanchal1987 - You have two make two changes after converting the project. Firstly, remove `using NUnit.Framework;` from Program.cs. Secondly, you must set the TextEditor project as the startup project (right click, Set as StartUp Project). The warnings can be safely ignored.
Pieter
+1  A: 

Off the top of my head there are three open-source text editor controls you can download:

I'm sure there are others but these are pretty tried and tested.

Fara