Code: Select all
if (true) {
echo 'true';
} else {
echo 'false';
}
Moderator: kfury77
Code: Select all
if (true) {
echo 'true';
} else {
echo 'false';
}
me too.joemichaud wrote:Sorry to contradict, but I actually prefer it the way it is now.
Oh I did not mean to come off like I believed this was a bug. My hope was to have an option to change this type of behavior, because it doesn't seem to make much sense to me. When I want to hide a portion of code from view I would like to only hide the current block. To me it feels like the if and the else should be considered separate blocks to be collapsible. It's been a while since I've used an editor with this feature, but I know that this is the Dreamweaver 8 method of collapsing.Gatis wrote:At the moment this is the intended behaviour at least until majority of customers shall ask for other implementation of this feature.
The same functionality is used also in some other editors that support code collapse. For example, Notepad ++.
Oh, I did not feel that you were being rude. I completely understand the need to keep things simple.Gatis wrote:Tanks for your explanation, blepore. Sorry if I sounded rude.
Well, I have not used Dreamweaver myself, so I do not not how did they implement this. The problem I see here is that the closing mark of a block - '}' and also the opening one - '{' are on the same line.
Right now the code is collapsed including the last line where '}' is. Because of this it is not possible to have the same line with opening mark '{' being visible.
We would have to implement another complicated code collapse algorithm and also add an option.
Until substantial count of customers will be asking for this, we shall concentrate on improving or adding features that are more important.
Oh I've got enough hosting. What is the policy on posting pictures on this forum? I figured that attachments were down I thought they were disabled and thus I should link anything.chrisjlocke wrote:Email me the attachment and I'll host it for you, if needed.