- Code: Select all
<?php
function example($a)
{
if (1)
{
echo $a;
$str = <<<HEREDOC
line1
line2
HEREDOC;
echo $a;
}
else
{
echo $a;
echo $a;
}
}
In reading this recent post (http://www.sublimetext.com/forum/viewtopic.php?p=39663#p39663), it sounds like the folding logic is based on indent levels, which certainly doesn't work with PHP's HEREDOC requirement of having the ending marker in column 1. See http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc.
Are there any workarounds in Sublime for this? Am I doing something wrong here?