
Hello!
I have issue with SyntaxEditor and Web Languages addon.
I have a code:
<editor:SyntaxEditor x:Name="CodeEditor" IsLineNumberMarginVisible="True" IsOutliningMarginVisible="True" IsCurrentLineHighlightingEnabled="True" Text="{Binding Text, Mode=TwoWay, NotifyOnSourceUpdated=True}">
syntaxeditor:EditorDocument xml:space="preserve">
<syntaxeditor:EditorDocument.Language>
<syntaxeditor:JavaScriptSyntaxLanguage />
</syntaxeditor:EditorDocument.Language>
</syntaxeditor:EditorDocument>
</editor:SyntaxEditor>
As you can see Text is binded to my view model property Text:
/// <summary>
/// Gets or sets the text.
/// </summary>
/// <value>The text.</value>
public virtual string Text
{
get { return _text; }
set
{
_text = value;
OnPropertyChanged(() => Text);
}
}
But when my application use a Dark Theme (Metro Dark Theme) all resrved words like "function, void etc." from JavaScriptSyntaxLanguage highliting with color to hard read, because it's very bright like ~RGB 0:0:255. But in demo app I see nice color when theme is dark, and I suppose it's turquoise color.
Could you help me with that?
I don't know how to attach an image here, but I believe you will understand my poor english :)