I need a text control where the user is able to edit text and where some parts of the text can have different colors based on the text. Basically, imagine Visual Studio source file editor or any other source file editor which colors the source code. What WPF control is that? None of the three options in WPF I am aware of are not suitable:
TextBox doesn't allow colors
TextBlock doesn't allow users to edit the text
RichTextBox allows too much - I just want colors.
Maybe RichTextBox can have fixed other text formattings (i.e. fonts, bold, italic)? Any thoughts?
This Feature is not in any of the text controls. May be you can write your own custom control by inheriting RichTextBox.