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.
Please sign in to leave a comment.
Everyone can reproduce this?
nice Support!
Hi sten,
It's a bug: http://youtrack.jetbrains.com/issue/WI-1732
so long exist? Thats a very strange BUG!
PLS Devs fix them!
@Andriy thanks
When get this Issue fixed? Its a Shame so long no fix for this Issue!
Does the problem have been resolve ?