Thanks for all the input. I think I found something useful. I have a IWpfTextViewCreationListener
. I added following code lines:
[Import]
public IEditorFormatMapService FormatMapService = null; // MEF
public void TextViewCreated( IWpfTextView textView ) {
IEditorFormatMap editorFormatMap = FormatMapService.GetEditorFormatMap( textView );
editorFormatMap.FormatMappingChanged += FormatMapChanged;
}
void FormatMapChanged( object sender, FormatItemsEventArgs e ) {
/* do something */
}
The FormatItemsEventArgs
include all the changed fonts and colors. That is exactly what I needed.