4

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

2

2 Answers 2

4

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.

Sign up to request clarification or add additional context in comments.

Comments

2

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.