Hallo,
I am using this code to fill the Editor With code:
public
void
Test()
{
using
(StreamReader reader =
new
StreamReader(
"../../ViewModels/ShellViewModel.cs"
, Encoding.UTF8))
{
SyntaxEditor.Document =
new
TextDocument(reader);
}
CSharpTagger cSharpTagger =
new
CSharpTagger(SyntaxEditor);
SyntaxEditor.TaggersRegistry.RegisterTagger(cSharpTagger);
}
This does not Show any result. The SyntaxEditor is initialized and editable. But the code from ShellViewModel.cs is not showing (it is correctly loaded in the reader). Also when I type keywords into the editor, they are not highlighted. The SyntaxEditor.Document.CurrentSnapshot also does show that at least something is loaded (correct lenght and linecount).