Thanks for your answer,

Basically, I want to fold portions of code, encoded by #region /
#endregion blocks, but I don't want to loose the ability to fold
classes and methods as well.

This need is crucial when you have a class with 15-20 methods, and you
want to have an overview of the class on one screen.

Kind regards,
André



On 13 April 2012 08:05, Ben Schmidt <[email protected]> wrote:
> On 12/04/12 4:56 PM, André Rodier wrote:
>>
>> Hello everybody,
>>
>> I am using vim for web sites development, especially in PHP.
>>
>> I am happy so far with the PHP code folding by default,probably the
>> syntax method.
>>
>> When I have a big php class with a lot of methods, I like to organise
>> the code by "sections", what is now in C# as "regions". The final
>> result is easier to read and maintain. Exemple for a controller in
>> codeigniter.
>>
>> I could use comments like /* {{{ */ but I prefer to use #regions /
>> #endregions, as it's viewed as comments by PHP.
>>
>> If us use marker for the folding method, it's working, and I have a
>> beautiful thing like that :-) :
>>
>> class UserController
>> {
>>     [private members]
>>
>>     [Login / Logout]
>>
>>     [Registration]
>>
>>     [Password changing]
>>
>>     [Profile editing]
>> }
>>
>>
>> Please, can you tell me how to extend the folding options in the
>> syntax file, to be able to fold by regions, classes, method, etc.
>
>
> Can you give a more detailed example of what you want? What do you want
> your code to look like when it's unfolded, and then when it's folded?
>
> Ben.
>
>
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php



-- 
André Rodier

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to