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!
Please sign in to leave a comment.
That's not implemented yet. Please upvote this feature request: https://youtrack.jetbrains.com/issue/RIDER-17177
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.
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.
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!