Code folding request for Informix 4gl

This forum should be used for all code folding problems, questions or suggestions. You can also use this forum to request folding support for a new language.
Post Reply
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Mark,

A first cut of the new xFolder.dll can be found here: http://www.zeusedit.com/z300/xFolder.zip

To install the new file just backup the xFolder.dll in the Zeus install folder and replace it with the one in the zip file.

If you find any issues please report them here.

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Mark,
Can you take a look at these?

Can you post a short snippet of code that shows these foldling errors :?:

With a simple example it should be easy enough to fix these folding issues ;)

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Mark,

The new version of the xFolder.dll that fixes the problem with the display can be found here:

http://www.zeusedit.com/z300/xFolder.zip

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Mark,

Here is another version to try out: http://www.zeusedit.com/z300/xFolder.zip
I forgot about this goofy syntax that is allowed.
It usually takes a few goes to get the foldign working, as most languages seem to have their little quirks.

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

MENU LINE FIRST,
INPUT WRAP,
Ther problem is these two lines.

Because they are MENU and INPUT lines they are both seen as point points but there are no matching END MENU and END INPUT end of fold points.

For example if you comment these lines out the folding will be fine.

So what happend to these end points?

For every point that is defined as a begin fold there must be a matching end fold otherwise the Zeus folding logic will just fail as it has in this case.

Cheers Jussi

PS: Is 4gi a valid file extension in addition to 4gl :?:
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Do you have any kind of an 'exclusion list' where you can say: First word= INPUT but not if second word = WRAP ?
That is easy enough to do.

Is there any similar rule for the MENU case :?:

Cheers Jussi
Last edited by jussij on Mon Jun 22, 2009 3:04 pm, edited 1 time in total.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Inside of an OPTIONS section you can have:

INPUT WRAP
INPUT NO WRAP
MENU LINE
The Zeus folder has to decide if a line is a fold point using nothing but the information found in that line. I other words it will not know if it is or isn't inside a OPTIONS section.

So for example the best the folder can do in these cases is ignore INPUT lines that are followed by WRAP and NO WRAP and ignore the MENU lines if it is follwed by LINE.

But will this be enough to stop invalid fold points :?:

If it isn't then the best thing to do is just remove INPUT nad MENU as fold points.
I think you are already handling the DISPLAY word by itself? It should be ignored in favor of DISPLAY ARRAY.
Will do ;)

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Mark,

Here is another version to try out: http://www.zeusedit.com/z300/xFolder.zip

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

PS: Is there a way in a macro or a keystroke to have it fold or unfold all of the folding points?
See the view, folding menu.

Also since all of the main menus map to a keyboard function, anything that can be done via the menu can also be done via the keyboard or macro.

The easiest way to find out which keyboard function maps to what menu is to use the macros menu to record a macro, use the the menu in question, stop the recording and then view the source of the macro using the macros, view source menu.
Like if you are editing a file, and want to view the whole thing without any folded sections. It looks like you can save and close the file and then reload it and this will happen.
There is an option to open all folds on the menu qutoed above ;)

Cheers Jussi
Post Reply