adelf / idea-php-dotenv-plugin

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

Multi-line strings #41

Closed demalexx closed 4 years ago

demalexx commented 5 years ago

Is it planned to add support of multi-line strings? I'm not sure how it could be done, but sometimes I miss this feature :) Thanks.

adelf commented 5 years ago

You mean alternative syntax from here - https://github.com/bkeepers/dotenv#multi-line-values ?

demalexx commented 5 years ago

Kind of.

adelf commented 5 years ago

Do you have any other standards of that? Please share. This plugin supports a lot of languages :)

demalexx commented 5 years ago

I don't know the best way of implementing this :) I use direnv and looks like multi-line strings could be written like VAR=$'line1\nline2'. With proper .envrc it will be translated into export VAR=$'line1\nline2'.

adelf commented 5 years ago

image As you see, plugin supports variables like VAR=$'line1\nline2'. The problem is only with real multiline variables :) I can try to solve it

adelf commented 4 years ago

Included to 2020.1 release.