PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Nathan Durland on November 17, 2009, 08:51:44 PM

Title: Code tips, kinda like Jelly Fish
Post by: Nathan Durland on November 17, 2009, 08:51:44 PM
At work, we have a pretty large library of .INC files.  With JellyFish, we used the CodeTip builder so that the editor would pop up reminders about what order the function wants things in.  Such a function would be useful in FireFly.

For now, I cheat and tag it at the end of an existing file in the .\Keywords folder, but they get clobbered (as expected) when FF is updated.
Title: Re: Code tips, kinda like Jelly Fish
Post by: Paul Squires on November 17, 2009, 08:55:06 PM
I will implement a file called "codetips_user.txt" where people can copy their own codetips and they won't get copied over on updates.
Title: Re: Code tips, kinda like Jelly Fish
Post by: Paul Squires on November 17, 2009, 09:01:34 PM
Okay, this has now been implemented.

The fix will be in v3.04.
Title: Re: Code tips, kinda like Jelly Fish
Post by: Rolf Brandt on November 18, 2009, 07:15:25 AM
This is certainly a useful feature. But couldn't this be done also in the Functions Library by setting the Prototype flag?

What I would love to see is the way VB5/6 handled things. If one creates a new sub or function in VB the code editor would reflect that right away and bring up tooltips for the parameters of the function. I would imagine this could be done as follows:

-  When opening a project FF3 scans all files for subs and functions and keeps it in memory.
-  Whenever a line of code is written that starts with the keyword Sub or Function, or any
   change is made in such a code line FF3 adds it to the list.

That might greatly enhance the comfort of the editor and code tips would be specific to the project.

Rolf
Title: Re: Code tips, kinda like Jelly Fish
Post by: Nathan Durland on November 18, 2009, 08:49:30 AM
Quote from: Rolf Brandt on November 18, 2009, 07:15:25 AM
This is certainly a useful feature. But couldn't this be done also in the Functions Library by setting the Prototype flag?

I suppose that the Functions Library would work, but not always.  For example, we use the (excellent) SQL_Tools library.  We'd have to break the .INC file into separate discreet files in the Functions Lib to get the same effect. 

The idea of behaving like VB5/6, is intriguing as long as there's not a significant performance hit.  I'm thinking of things like the Win32 library -- headers for thousands of functions just for that in memory at one time.
Title: Re: Code tips, kinda like Jelly Fish
Post by: Paul Squires on November 18, 2009, 08:53:15 AM
I have on my to-do list automatic codetip generation for subs/functions that are entered into the code editor as you are coding. The parsing routines are already present in FF3 because they are used for other purposes. All that would be needed is to add the found subs/functions to the codetip list.

Title: Re: Code tips, kinda like Jelly Fish
Post by: Rolf Brandt on November 18, 2009, 08:59:02 AM
That sounds great, Paul. I'm loving FF3 more and more. It was worth waiting for it.

Rolf