i am writing a small app to manage code snippets , so i want a component to display the code (keyword coloring , lines numbering ...) , so where to get this component and if it doesnt exist how to implement it .
edit : i dont want to write a 开发者_Python百科code editor , only a component to display code with last features (keyword coloring , lines numbering ...) instead of plain text area thanks
For syntax highlighting check :
Syntax Highlighting in Rich TextBox Control
Syntax highlighting textbox in C#
How To Implement Syntax Highlighting In A WinForms Application
Also you can check there must be some 3rd party controls.
I suggest http://www.codeproject.com/Articles/161871/Fast-Colored-TextBox-for-syntax-highlighting which has a lot of features.
Also, encapsulating http://ace.c9.io/#nav=about would be an option depending on your technology stack
精彩评论