adelf / idea-php-dotenv-plugin

environment parameters completion, based on .env file keys
MIT License
166 stars 13 forks source link

Syntax highlighting - Feature Request #2

Closed blackfyre closed 6 years ago

blackfyre commented 7 years ago

Hi!

I don't really know (and won't pretend to), how PHPStorm and the other IDEA offspring do this, but some kind of highlighting for the .env files would be helpful :)

kAlvaro commented 7 years ago

Until I discovered this plug-in I was using Bash highlighter (not sure whether it's builtin or third-party) and it worked fine (save for the insistence of adding a shebang). Perhaps it could be taken as starting point.

alex-holt commented 7 years ago

Yes please!

This will be a real help as our company .env files are LONG and difficult to navigate

luiz-brandao commented 6 years ago

You can get syntax highlighting by setting .env as an ini file type. Go to Settings > Editor > File Types, then under Recognized File Types select Ini and then add .env to the Registered Patterns list.

Producdevity commented 6 years ago

@luiz-brandao-jr the only problem with that is that you'll lose all the functionality the plugin has to offer... :(

adelf commented 6 years ago

Finally, did it :) in 0.7