How to implement Syntax Highlighting and Auto-Complete feature in C#.NET GUI Application?
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 s开发者_如何学运维ome tips about that? Can I implement these features in a "Rich Text Box"?
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.
Off the top of my head there are three open-source text editor controls you can download:
- Scintilla.NET
- AvalonEdit (the #Develop editor)
- FireballFX
I'm sure there are others but these are pretty tried and tested.
精彩评论