[Mono-dev] Using Mono.CSharp in a syntax highlighting engine
Miguel de Icaza
miguel at novell.com
Wed Jan 26 13:17:15 EST 2011
> Was this an anticipated use of Mono.CSharp? Does anyone have any pointers
> for how to use it in this manner?
To generate code dynamically from C# text. The use as a syntax
highlighter is probably not going to be very good.
You found a first few issues with it, but you will run into more.
The internal tree created during parsing does not really correspond
with a textual interpretation of the source, but a transformation that
is useful by the compiler. So you would have to undo that in several
places, or fork the code for your particular needs.
More information about the Mono-devel-list