brackets-code-folding
brackets-code-folding copied to clipboard
PHP Multi-line String Issue
If a multi-line string is inside an if or switch statement, the code block only gets collapsed till the start of the multi-line string, for example:
// if or switch here... $str = <<<STRING code .... STRING;
could you give a concrete example rather than pseudo code?
Seems to occur only when collapsing "case"; it doesn't collapse the multiline echo (PHP). Try collapsing 'case' in the following example:
switch($x) {
case 'value':
if(FALSE) {
// do something
}
else {
$multiline = <<<TEST
Output something...
TEST;
}
break;
}