Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hp-pcd!hplsla!davidr From: davidr@hplsla.HP.COM (David M. Reed) Newsgroups: comp.sys.ibm.pc Subject: Re: Wanted - a powerful Pascal developers tool Message-ID: <5190006@hplsla.HP.COM> Date: 15 Apr 89 00:06:08 GMT References: <7510@phoenix.Princeton.EDU> Organization: HP Lake Stevens, WA Lines: 17 I use Turbo Pascal extensively, such that I develop large programs comprised of many modules (or Units). It was always difficult to trace through a program, not knowing in which file a particular Procedure or Function was defined. Then one day it dawned on me, while perusing my MKS Toolkit manual, that they had a program, called ctags, that is used to create a "tags" file which contains all of the functions in your C programs, and which the editor vi can use to jump to the appropriate place in the proper file. So I ran it on a C program, determined what the "tags" file format was like, and then quickly created a ksh script to build a similar file of Pascal Procedure and Function references. Now, within vi, I simply place my cursor on the name of a Procedure/Function, press ^], and it immediately loads in the proper file and jumps to the location of the Procedure/Function. (And, with vi, it is easy to return to the file and location I was at previously by the :e# command.) Wow! This has really saved me a lot of time and trouble. (I am so VERY greatful, at times like this, for the great power in a lot of UN*X tools, and the wonderful implementation that MKS has done!)