I've seen this happen before when I've been outputting something that
looks like an XML start string, i.e., <?xml. In order to resolve the
BBEdit issue, I would just set the string using a concatenate
operator, i.e., '<?' . 'xml'
I'm not doing anything like this. It's pretty much all of my php
files though. (I have yet to find one where this works as expected.)
I've also seen it when there is some kind of syntax error in the
document or if you break the PHP out into the HTML file. Sometimes
there is something in the non-php-parsed content that throws BBEdit
for a loop.
Don't think this is the case, for instance, putting your example in
works fine, but when I put an if block or try block within your
example it doesn't get seen as a foldable bit of code.
Is the file named something.php? Is the document type at the bottom
left set to php or HTML?
Yes, language is set to PHP.
If all else fails, you can try making a simple php file and seeing if
the code folding works. Something like:
Ok, here's my tweak of your example.
<?php
function something()
{
if ($something)
{
echo 'whatever';
echo 'whatever';
echo 'whatever';
}
}
?>
With the language set to PHP only the function block is foldable in
the gutter... however, if I merely change the language to Javascript
the if block also becomes foldable.
Perhaps I'm mistaken, but shouldn't any block of code be foldable? I
can fold it using the "Balance and Fold" command, it's just not
giving me the disclosure triangles in the gutter.
Can someone please check and make sure that this example is foldable
in BBEdit on their machine?
Here's a screenshot comparing my expected behavior (on the right as
Javascript) with BBEdit's actual behavior (the left as PHP).
http://www.olemiss.edu/~esayre/images/PHPvsJavascript-CodeFolding.png
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>