[Monodevelop-devel] Dinamically changing the mime type to TextEditor.Document
Daniel Peñalba
dpenalba at codicesoftware.com
Wed Nov 18 13:30:02 UTC 2015
Hi
When changing the mime type to a Mono.TextEditor.Document, the new
syntax highlight colors are not drawn in the TextArea,
I followeed Mike's suggestions on this thread, "dynamically change the
MimeType on Mono.TextEditor":
http://lists.ximian.com/pipermail/monodevelop-list/2012-February/014475.html
So, I tried the following code:
editor.Document.MimeType = "text/html";
Mono.TextEditor.Highlighting.SyntaxModeService.WaitUpdate(editor.Document);
editor.Document.CommitUpdateAll();
But it still does nothing :-(
Any other suggestion?
Thanks in advance.
Daniel
More information about the Monodevelop-devel-list
mailing list