injected HTML in php File ...

Hello,

first PHPStorm is the best IDE that i ever seen!

But i have a little Problem.

I do inject in my php file a html fragment like:

echo <<<HTML

    if ('{$checkchat}' == 1) {
        $('#chatbox').show();
        $('#ctechat').css({'color':'#FF0000'});
        $('#boxstatuschat').html('(open)');
           $('.nkate').attr({'width':'250'});
        if ($('#cbox').is(':visible')) {
            $('#explode').css({'width':'1180px'});
        } else {
            $('#explode').css({'width':'1030px'});
        }

        $('#plo').css({'border-right':'2px solid #fff'});
        $('#plo').css({'width':'100%'});

    }


HTML;

when i do edit HTML Fragment then it shows this code like this:

    if ('__checkchat_' == 1) {

        $('#chatbox').show();
        $('#ctechat').css({'color':'#FF0000'});
        $('#boxstatuschat').html('(open)');
           $('.nkate').attr({'width':'250'});
        if ($('#cbox').is(':visible')) {
            $('#explode').css({'width':'1180px'});

        } else {
            $('#explode').css({'width':'1030px'});

        }

        $('#plo').css({'border-right':'2px solid #fff'});
        $('#plo').css({'width':'100%'});

    }



My Problem is he allways replace my php variables in this Fragments with _.

Also he convert the {} and the $.

Can everyone help me to deaktivate this or is this a Bug?

Sorry for my english i hope your understand me.
6 comments
Comment actions Permalink

Everyone can reproduce this?

0
Comment actions Permalink

so long exist? Thats a very strange BUG!

PLS Devs fix them!

@Andriy thanks

0
Comment actions Permalink

When get this Issue fixed? Its a Shame so long no fix for this Issue!

0
Comment actions Permalink

Does the problem have been resolve  ?

0

Please sign in to leave a comment.