Change XAML syntax coloring on Rider

Answered

Hello,

I'd like to change the syntax coloring used for XAML files on Rider, but I am unable to do so.

I want it to be just like the XML syntax coloring, and for instance use the "Tag name" color rule instead of the "Class name" one. Is there a way to do it?

Thanks!

4
4 comments

That's not implemented yet. Please upvote this feature request: https://youtrack.jetbrains.com/issue/RIDER-17177

0

I'm quite surprised to see this feature still missing in Feb of 2022.  Those of us developing WPF apps in .NET spend about 50% of our time XAML editing. With no ability to customize colors, the motivation to use Rider is heavily compromised.

0
Avatar
Permanently deleted user

The problem is that the Rider plugin attaches a Dummy syntax highlighter to XAML (as can be seen in the `RiderPlugin.xml` file, inside `Rider.jar`).

Actually, the highlighter's class is `com.jetbrains.rider.ideaInterop.fileTypes.xaml.XamlHighlighterProvider`, but this class only extends `RiderDummySyntaxHighlighter`...

Forcing Rider to attach XML's syntax highlighter (ie: `com.intellij.lang.xml.XmlSyntaxHighlighterFactory`) to XAML fixes this issue. However, I don't know if this can be done via a plugin.

0

Hi @...

Did I understand right that you want to implement RIDER-35339 as a plugin? If so, it is better to ask help from our developers in a private slack channel #dotnet-pluginwriters. Just let me know if you want to be added there.

We already have a feature request for this functionality. Unfortunately, it has not been planned for any release yet.  

Have a great day! 

0

Please sign in to leave a comment.