
Hello,
Q1-
I'm having issues changing the text foreground color in my custom CustomClassificationTagger class i created. I used it the same way as you guys did in your sample, but instead, in the constructor I used another override of the HighlightingStyle method, as such:Now for some reason, all other options are set correctly except the foreground color of tags. I tried it with your demo and it works fine, but for some reason, even if i specify a Brushes.White or Brushes whatever color it keeps the black color only?
Do you have an idea of why such a scenario occurs?
Q2-
I was also wondering what the "ClassificationTypes.SyntaxError" meant, I tried changing this argument for "ClassificationTypes.Identifier" and the formatting did not work?
Thanks
Nassim
Q1-
I'm having issues changing the text foreground color in my custom CustomClassificationTagger class i created. I used it the same way as you guys did in your sample, but instead, in the constructor I used another override of the HighlightingStyle method, as such:
static CustomClassificationTagger()
{
// Register the classification type for a warning that will render the squiggle in red
AmbientHighlightingStyleRegistry.Instance.Register(ClassificationTypes.SyntaxError, new HighlightingStyle(Brushes.White, Brushes.LightBlue, true, false, HighlightingStyleLineStyle.Dot));
}
Do you have an idea of why such a scenario occurs?
Q2-
I was also wondering what the "ClassificationTypes.SyntaxError" meant, I tried changing this argument for "ClassificationTypes.Identifier" and the formatting did not work?
Thanks
Nassim