-1

In my winform application I allow the user to write/read some c# code (simple text in a RichTextBox, I would like to add the functionality to highlight the syntax like VS or notepad++ does, nothing advanced like intellisense and so on, just the text colour change would do.

I've been looking around but I couldn't find anything, do you know if there's a ready to use library or something that I can use?

Faz
  • 61
  • 6
  • Read the [help] about what's on topic in this site. – Steve Jan 02 '16 at 16:27
  • oh, sorry didn't know @Steve, Do you know where should I ask this question? – Faz Jan 02 '16 at 16:32
  • Well, you could start with researching the controls you've got available, like the rich text controls, and consider how to parse the source for highlighting as RTF; or even look at how open source editors have done it as a first option. StackOverflow is a great place for asking about solving specific issues you come up against with your implementation – Rowland Shaw Jan 02 '16 at 16:34
  • Thanks a lot. Sorry I'm new to StackOverflow, shall I delete the question then or can I leave it here? – Faz Jan 02 '16 at 16:37

1 Answers1

0

I found FastColoredTextBox component which seems to be exactly what I need, answering in here in case someone else needs it.

Faz
  • 61
  • 6