On Nov 9, 2007 7:27 AM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Hi, > > It's just amazing how many cool features we have in the compilers and > especially the IDE's. The biggest _cool_ feature is the jumping > between Interface and Implementation sections for a method > (Ctrl+Shift+Up/Down). > > Anybody done this before? How complicated would the code parsing be > to enable something like that. Note: I've never written a pascal code > parser before. All I'm interested in is the jumping feature, no > syntax highlighting etc... > But then again, if the FPC's text IDE supports that, my problem is > solved. If it doesn't, maybe I can implement it in their instead.
Hello Graeme , Any editor that knows how to handle ctags (vim,emacs,probably others) should be able to provide this jumping as long as you provide a 'tags' file in the directory where you are editing the sources. I have done a quick test and ran : ctags *.pas which has successfully generated the tags file for all the pascal files in the current directory. I've opened the pas with vim, and i can go on a procedure call and press ctrl+] which jumps to the definition of that procedure. Ctrl+T jumps back . In my case the procedure was defined in the same source file, but there is no reason for this mechanism not to work with functions defined in another file. The version of ctags that i've used is : Exuberant Ctags 5.5.4 (http://ctags.sourceforge.net/) Cheers, Adrian Maier _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
