Getting IClassifier to work with custom content type
问题 I am trying to add syntax highlighting for a custom content type based on text e.g. static class RTextContentType { public const string ContentTypeName = Constants.CONTENT_TYPE; [Export, Name(ContentTypeName), BaseDefinition("text")] internal static ContentTypeDefinition ContentTypeDefinition = null; // set via MEF } Then the classifier provider is declared like this, [Export(typeof(IClassifierProvider)), ContentType(Constants.CONTENT_TYPE)] class RTextClassifierProvider : IClassifierProvider