I've got a WPF TextBox into which my users type XHTML.
XAML...
<TextBox Name="TextBoxContentBody" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" FontFamily="Consolas" ... /> It looks like this:

I'd rather that it looked like this (Photoshopped mock-up):

How might I accomplish this?
13 Answers
You'll want to use a RichTextBox for that.
Like Kent said with a TextBox you're stuck with one color.
Here is a small article on simple RTB syntax highlighting that should give you most of what you need.
1You will have to create a custom control inheriting the TextBox control and follow this example: