
Hi,
I'm trying to get the syntax highlight to work but it only highlights all common names.
editor.Language = new CSharpSyntaxLanguage();
var Project = editor.Language.CSharpSyntaxLanguage.GetService<IProjectAssembly>();
editor.Language.RegisterProjectAssembly(Project);
Project.AssemblyReferences.AddMsCorLib();
Project.AssemblyReferences.AddFrom("C:\\test.dll");
The test.dll assembly contains a class called 'TestClass'.
If I now paste the following code in the editor, TestClass does not get highlighted.
class Test
{
var test = new TestClass(); //no syntaxhighlight
test.write(this.Column); //'this.' is highlighted
}
What am I missing?