-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong variable color in PHPStorm #151
Comments
Hi Mario 👋, thanks again for another contribution 👍 Looks like this is also related to #120 (#121) again. The theme must be changed to use explicit color definitions instead of relaying on color inheritances for languages that are especially bundled with PhpStorm. I'll quickly install a trial version and check which syntax highlighting plugins require additional support. |
PhpStorm [1] ships with support for specific languages, frameworks and libraries for PHP development and of course advanced highlighting for PHP. Due to the same problems documented in GH-120 (and mitigated in GH-121) some syntax theme keys required to be replaced with explicit definitions instead of reyling on color inheritances. Therefore this commit adds explicit support for PhpStorm's bundled language syntax: 1. Main support for "PHP" [2][3] 2. Laravel "Blade" Temapltes [4][5][6] 3. "Twig" template engine [7][8][9] 4. "Smarty" templates [10][11] [1]: https://www.jetbrains.com/phpstorm [2]: https://www.php.net [3]: https://plugins.jetbrains.com/plugin/6610-php [4]: https://laravel.com/docs/7.x/blade [5]: https://www.jetbrains.com/help/phpstorm/blade-page.html [6]: https://plugins.jetbrains.com/plugin/7569-blade [7]: https://twig.symfony.com [8]: https://www.jetbrains.com/help/phpstorm/symfony-twig.html [9]: https://plugins.jetbrains.com/plugin/7303-twig [10]: https://www.smarty.net [11]: https://www.jetbrains.com/help/phpstorm/smarty.html Related to GH-120,GH-121 GH-151 Co-authored-by: Sven Greb <development@svengreb.de>
I've submitted #153, let me know if there are styles you might think that can be improved. Since I've never used PHP it's possible that I've "misinterpreted" some of the syntax elements, e.g. I'm not sure if the |
You always inspire me with your quality of work, great documentation and thoughtfulness. I already started to make better git messages myself since reading yours, by including a title and description instead of writing only a short one-liner :). I'm also not working that often with PHP nowadays but the above picture does look good to me. The colors are adjusted to be similar like in Go for example.
Thank you for fixing the problem so quickly Sven! |
Thanks for the compliments 😊 Anyway, drifted away from the topic again 😃 |
Thank you for the |
Add explicit support for bundled PhpStorm language syntax PhpStorm [1] ships with support for specific languages, frameworks and libraries for PHP development and of course advanced highlighting for PHP. Due to the same problems documented in GH-120 (and mitigated in GH-121) some syntax theme keys required to be replaced with explicit definitions instead of relying on color inheritances. Therefore this commit adds explicit support for PhpStorm's bundled language syntax: 1. Main support for "PHP" [2] and the official JetBrains plugin [3] 2. Laravel "Blade" Templates [4] See JetBrains official "Blade" documentation [5] and the plugin [6] for more details. 3. "Twig" template engine [7] See JetBrains official "Twig" documentation [8] and the plugin [9] for more details. 4. "Smarty" templates [10] See JetBrains official "Smarty" documentation [11] for more details. [1]: https://www.jetbrains.com/phpstorm [2]: https://www.php.net [3]: https://plugins.jetbrains.com/plugin/6610-php [4]: https://laravel.com/docs/7.x/blade [5]: https://www.jetbrains.com/help/phpstorm/blade-page.html [6]: https://plugins.jetbrains.com/plugin/7569-blade [7]: https://twig.symfony.com [8]: https://www.jetbrains.com/help/phpstorm/symfony-twig.html [9]: https://plugins.jetbrains.com/plugin/7303-twig [10]: https://www.smarty.net [11]: https://www.jetbrains.com/help/phpstorm/smarty.html Related to GH-120, GH-121 Closes GH-151 Co-authored-by: Sven Greb <development@svengreb.de>
Add explicit support for bundled PhpStorm language syntax PhpStorm [1] ships with support for specific languages, frameworks and libraries for PHP development and of course advanced highlighting for PHP. Due to the same problems documented in GH-120 (and mitigated in GH-121) some syntax theme keys required to be replaced with explicit definitions instead of relying on color inheritances. Therefore this commit adds explicit support for PhpStorm's bundled language syntax: 1. Main support for "PHP" [2] and the official JetBrains plugin [3] 2. Laravel "Blade" Templates [4] See JetBrains official "Blade" documentation [5] and the plugin [6] for more details. 3. "Twig" template engine [7] See JetBrains official "Twig" documentation [8] and the plugin [9] for more details. 4. "Smarty" templates [10] See JetBrains official "Smarty" documentation [11] for more details. [1]: https://www.jetbrains.com/phpstorm [2]: https://www.php.net [3]: https://plugins.jetbrains.com/plugin/6610-php [4]: https://laravel.com/docs/7.x/blade [5]: https://www.jetbrains.com/help/phpstorm/blade-page.html [6]: https://plugins.jetbrains.com/plugin/7569-blade [7]: https://twig.symfony.com [8]: https://www.jetbrains.com/help/phpstorm/symfony-twig.html [9]: https://plugins.jetbrains.com/plugin/7303-twig [10]: https://www.smarty.net [11]: https://www.jetbrains.com/help/phpstorm/smarty.html Related to GH-120, GH-121 Closes GH-151 Co-authored-by: Sven Greb <development@svengreb.de>
@mariojackson The change is now available in the freshly shipped version 0.12.0 that is also shipped to the JetBrains Plugin Registry. The update is currently processed and should be available within the next 24h from Nord's plugin page. |
Nice! Thank you Sven! |
Hi Sven!
It seems like the default color for a variable in PHP differs from other languages.
The color in the picture seen below is most probably the default color of Jetbrains its own Darcula theme.
I just made a fresh installation of the current PHPStorm 2020.1 along with the Nord plugin today.
It seems that by default the inheritance in PHP for variables is disabled. When enabling manually or just enabling and then disabling again, the color for the variable correctly turns to white and stays like that.
Edit:
This is also true for constants and parameters.
The text was updated successfully, but these errors were encountered: