Creating a new EditorColorsScheme

How can I create a new EditorColorsScheme instance? I can see the addColorsScheme() method in EditorColorsManager, but how to create an instance to feed this method?

3 comments

While we're on the subject, is there any way to add "custom" attributes to a color scheme? I'd like to tag a color scheme with a couple of arbitrary values, and have these values saved and loaded automatically. Is that possible?

0

I think that all entries in the color scheme are based on the TextAttributesKeys assigned to ColorsPage. These keys correspond to highlighted regions in different languages. So when you have such a region and its default text attributes you can override those attributes with custom - that's what color scheme does. Color scheme text attributes without any regions where those attributes are applied are useless.

0

Still, you can only add TextAttributeKeys, not random values, to a color scheme. I know, you're probably asking why I would store anything else... just think about it as "meta information".

BTW, still no answer about how to create a new EditorColorsScheme instance. I take there's no way to do it?

0

Please sign in to leave a comment.