Wednesday, April 11, 2012

folding regions in php

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 /

No comments: