I'm developing a (.NET-based) programming language and an IDE for it in WPF. I want type names to have different colors based on wheter they are reference types, value types or interfaces (just like in Visual Studio). For this I have made my compiler emit symbols containing the row, column and length of the type name in the source file. How do I implement the following method?
public static void Colorize(System.Windows.Media.Brush color, TextArea textArea, int line, int column, int length)
{
}
I quickly wrote this, let me know if it works
Source: http://danielgrunwald.de/coding/AvalonEdit/rendering.php