In the Visual Studio extension that I built, I need to highlight method calls in the Visual Studio editor. For instance:

I would like to use HSV colors to split the color spectrum according to the number of unique calls.
I can achieve the highlight if I export each color as my own FormatDefinition editor:
[Export(typeof(EditorFormatDefinition))]
[ClassificationType(ClassificationTypeNames = "red-background")]
[Name("red-background")]
[UserVisible(true)]
[Order(After = Priority.High)]
public sealed class RedBackground : ClassificationFormatDefinition
{
public RedBackground()
{
DisplayName = "red-background";
BackgroundColor = Colors.Red;
}
}
However, for this I need to manually adjust all the colors that I would like to use ahead of time. Is there a way to export EditorFormatDefinitionsat runtime?
Some registries, such as IContentTypeRegistryService and IClassificationTypeRegistryService, allow you to create new types and classifications of content at run time. Is there a similar API for EditorFormatDefinitions.
, MEF ?