dracula / jetbrains

🧛🏻‍♂️ Dark theme for JetBrains IDEs (IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, WebStorm, etc.)
https://draculatheme.com/jetbrains
MIT License
773 stars 36 forks source link

Magic Constants (PHP) #28

Closed GitHub-Mike closed 4 years ago

GitHub-Mike commented 4 years ago

I'm using PhpStorm 2020.2 and can't find a way to format magic constants differently than "simple" constants.

Is this a PhpStorm problem or a missing theme feature?

WhiteVermouth commented 4 years ago

Could you provide a piece of sample codes and some screenshots?

GitHub-Mike commented 4 years ago

I can make a screenshot if you could tell me under which sub-item of the Color Scheme the "magic constants" setting should be located.

WhiteVermouth commented 4 years ago

Go to Preferences -> Editor -> Color Scheme -> PHP, all PHP color schemes locate at there. And I'm not familiar with PHP language.

GitHub-Mike commented 4 years ago

Here is a screenshot with Settings -> Editor -> Color Scheme -> PHP.

Missing a way to format magic constants differently than "simple" constants.

PhpStorm-2020 2 2-color-scheme

WhiteVermouth commented 4 years ago

I found that the IDE only offers one Constant property and no more relative properties like Magic Constant, which means all constants keep the same color. So I guess PhpStorm doesn't offer this syntax highlight feature.

GitHub-Mike commented 4 years ago

OK, thanks for your research! Then I close the issue now.