Assembly references syntax highlight

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 6 years ago by Mike
Version: 18.1.0670


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>();



 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?

Comments (3)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA


That is correct, it doesn't currently support the syntax highlighting of resolved type names.  That's something we'd like to do but it requires running the parser resolver on every identifier in the document and then syncing that data up with the syntax highlighting, which is a big performance hit.  We haven't found a fast way to do that yet.  I will add your request with the related TODO item.

Actipro Software Support

Posted 5 years ago by horato

Hello, is there any progress on this issue? Thank you

Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA


No, I'm sorry but we haven't worked on that particular feature.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.