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 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.