Re: Outlinin block of code

From: Date: Wed, 26 Nov 2003 15:58:22 +0000
Subject: Re: Outlinin block of code
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-171083@lists.php.net to get a copy of this message
* Thus wrote David T-G (davidtg-php@justpickone.org): > > % > % On the left side where are usualy line numbers is "+" and you can group > % functions, classes or custom defined blocks of code. > > ... vim does a nice job "folding", which sounds like what you describe. > I tend to use foldmarkers and be picky, but it has a number of ways > including some fairly automated approaches to define the folds ("blocks"). > My thoughts exactly, folding works great. You can navigate a file with 30 functions/classes all in one screen. There is even a plugin for vim that creates a left side code navigation. It creates a list of all the functions and by clicking on them, the right side jumps to that function. An example of the folding display: +-- 49 lines: function foo($param1, $param2) { --------------- +-- 65 lines: function foo2($param1, $param2) { -------------- +-- 127 lines: class bar {------------------------------------- class bar2 { var $v; +--- 3 lines: function bar2() {------------------------------- function foo() { //editing this method } +--- 10 lines: function zap() {-------------------------------- } Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/

« previous php.general (#171083) next »