Re: [NTS] Function lookup
- On Thu, 25 Sep 2003 17:58:39 -0000, blade102071 <blade102071@...>
> I am working on a PHP project that uses calls to MANY functions.- Try http://ctags.sourceforge.net as a starting point
> All of the functions are held in a few include files.
> Does anybody know where I can find or how I can implement a clip that
> will allow me to do this? :
They provide the up-to-date implementation of a program specialized to
fulfill the basic needs of your task for many operating systems, incl.
- Find / read / try to get some out of the documentation (from the package
or on their website, I'm not sure how it's deliverd and / or what is
better) - (If you are new to the topic, maybe try twice or so to find the
right answer for your question ... the docs _are_ GOOD! Even if you find
your answer not at first... try oncemore)
Generally the 'ctags' program produces listings of function declarations
and other programming related key objects found in the files of a directory
and it's subdirectories, together with more or less detailed info about
where in what file found, type of the sighting, and so on, and writes them
to a file. Most of that (range and format of info as well as the output
Below you'll find a small and fast-hacked sample of a clip utilizing ctags
I did for myself some days ago -- it's purpose was to find all object and
function definitions in a single given file (actual the currently open doc)
and present this in another doc in a clickable manner (using NoteTabs
internal 'HyperLinks' ability). Not exactly what you need, but maybe just
another hint how to start against your task...
(There are some pathes or sections of pathes hardcoded, maybe you'll have
to adapt this to your needs)
--- clip ---
;1) create a tags file of the current doc
;Close tagfile if open and DISCARD (this is important, ctags -f refuses to
overwrite since, ;see man ctags)
;Fire command and wait until finished
^!ShellWait ctags -n -f ^%tagfilename% --format=2 --fields=k
;2) Make a linked version of the tags file in memory (write it to
; With the format produced by the above command this means (for each
; - Add a '[' to the start of the 2nd column
; - Add '^L]' to the end of the 3rd column
; - Replace the delimiter between 2nd and 3rd column with '::'
;Empty the clipboard
;Copies the line count number to a variable
;Initialize variable Row to 0
;Set field delimiter
;Loop through the file lines
;Add one to the value contained in the Index variable
;End loop if value contained in Row is greater than the value contained in
MaxRow ;(i.e. Number of lines in document)
^!If ^%Row% >= ^%MaxRow% EndLoop
; Check for comments / ctags internal infos
^!IfFalse ^$StrPos("!_TAG";"^$GetLine(^%Row%)$";False)$ GoOn ELSE LoopStart
;Get fields into vars
; Remove ';"' from field3
; Build ntb goto-line hyperlink from filename and linenumber (fields 2 & 3)
;Build new line
; Add to clipboard
;Jump back to the start of the loop
; 3) Overwrite the tagsfile with reworked version
; Sort the clipboard content
--- /clip ---
- Hi all!
I was wondering if anyone kept the digests?
I have had a very weird "bug" happen. I choose the word "bug" carefully,
since no one, anywhere, has ever heard of this. Even I would tell you it's
your imagination. Uninstalling software seems to delete my profile, which
contains Outlook and Outlook Express, mail files, Favorites, Temporary
Internet Files, settings for FTP programs, NT Back-up catalogues, and many
more important items.
So I lost that. I rebuilt from back-up and was working on my computer
again. Evidently, since I mapped the drives to the back-ups, the next time
I uninstalled something -- 2 weeks later -- it searched through all my
drives and deleted my back-ups. My tale of woe. I find myself strangely
My 5 year calendar, contacts, receipts, registrations, invoices, genealogy
contacts, etc., are gone. Ironically, I have become a back-up fanatic.
I've been backing up daily, refreshing every hour if I'm working. I just
had to reboot because of stupid satellite issues, and an uninstall deleted
the profile again. At least I have the last 3 days' work in back-up! I'm
losing my mind on this one. But that's another rant. (Any suggestions or
Anyway, I'm looking for my lists' digests back to August 2 of 2002. If you
happen to be an anal collector as I am, please email me privately?
I appreciate anyone's time and help. Thank you in advance!