Reputation: 1369
How to configure highlighting of custom/react components in JSX (render block)?
I want to configure editor color for <Home />
component in this example. Is it possible?
Upvotes: 3
Views: 1649
Reputation: 1057
As of PhpStorm 2022.3 Beta (EAP), the highlighting for React components differs from other elements in JSX for most color schemes by default.
This is how it looks in Darcula color scheme that you use:
And this is how it looks in IntelliJ Light color scheme (my preferred scheme):
If you don't like the default color, you can customize it in Settings (Ctrl+Alt+S) > Editor > Color Scheme > XML, select "Custom Tag Name" and change the Foreground color:
If Foreground and other options are disabled, you need to uncheck the "Inherit values from:" checkbox below these options.
Upvotes: 3