I have an AvalonEdit text box, and I want to include syntax highlighting. I've already created my .xshd file, and I have it in my project as a Resource. Now how do I apply it to my AvalonEdit box?
I've looked through a bunch of tutorials, but none of them have the solution.
use this:
System.Xml.XmlTextReader reader = new System.Xml.XmlTextReader(Assembly.GetExecutingAssembly().GetManifestResourceStream("MyNamespace.FileName.xshd"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With