X Base Support items??

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
Jhenn5
Posts: 5
Joined: Mon Oct 15, 2007 4:16 pm

X Base Support items??

Post by Jhenn5 »

I just install Zeus and it looks like I have finally found the replacement for Brief that I have been looking for. However, I cannot find where to change a few need items.

1. There must be a place somewhere that I can change the keywords to get the list of functions in a program file.

2. I can't seem to find anything about a Beautify process. It would be really great if I didn't have to learn to write my own macro or whatever to beautify X Base code.

Any help at all would be greatly appreciated, thanks.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

I just install Zeus and it looks like I have finally found the replacement for Brief that I have been looking for.

I'm glad find you Zeus a worthy replacement for the almighty Brief :)
1. There must be a place somewhere that I can change the keywords to get the list of functions in a program file.

You will basically need to edit the keywords section of the document type.

Here are some instructions on how to configure a new language: http://www.zeusedit.com/forum/viewtopic.php?t=236
2. I can't seem to find anything about a Beautify process.

Zeus offers several ways to Beautify you code.

The first option is to have Zeus indent the code as you type and there are two settings that control this aspect of Zeus.

The first it to define code templates or macros to do the typing: http://www.zeusedit.com/forum/viewtopic.php?t=40

The second is to tweak the Smart Bracing setting found in the Templates Options menu.

Here is some more information on smart bracing: http://www.zeusedit.com/forum/viewtopic.php?t=153

Finally you can also beautify you code using a third party tool but you will need to have a tool that knows how to beautify the X Base language.

There are many examples of how to do this from within Zeus:

http://www.zeusedit.com/forum/viewtopic.php?t=1067
http://www.zeusedit.com/forum/viewtopic.php?t=1044
http://www.zeusedit.com/forum/viewtopic.php?t=221
http://www.zeusedit.com/forum/viewtopic.php?t=183
Any help at all would be greatly appreciated, thanks.
A lot more information on how to tweak Zeus can be found here: http://www.zeusedit.com/forum/viewforum.php?f=5

But feel free to keep posting any questions you may have to this forum ;)

Cheers Jussi
Jhenn5
Posts: 5
Joined: Mon Oct 15, 2007 4:16 pm

Post by Jhenn5 »

Jussi,
Thanks for the help. I found Clipper under the document types and since it is an X Base language I only need to change a few things.

The one big problem I need to fix is the Function List. Currently it lists lines beginning with IF and containing (...). I need to remove this and only list lines beginning with the word: PROCEDURE or FUNCTION. How can I do this?
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

I need to remove this and only list lines beginning with the word: PROCEDURE or FUNCTION. How can I do this?
Edit the X Base/Clipper document type and in the General section define the Function Regex to be:

(^PROCEDURE)|(^FUNCTION)

FYI this regexp reads any word procedure at the start of a line or any word function at the start of line.

There is also more information about regular expressions found in the Zeus help ;)

Cheers Jussi
Jhenn5
Posts: 5
Joined: Mon Oct 15, 2007 4:16 pm

Post by Jhenn5 »

That was so easy! Thanks a million.
Post Reply