displaying function/procedure names in different color/bold

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
janis77blava
Posts: 4
Joined: Thu Oct 27, 2011 11:56 pm

displaying function/procedure names in different color/bold

Post by janis77blava »

Related to: Zeus for Windows, Version 3.97g

The Coloring options offer many items to be colored, but I could not find an option to color (or otherwise mark) function/procedure names. Is there a way to do it? Thank you.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

This might be possible using the Tags Syntax Highlighting option found in the Keywords section of the Document Type.

The Tags Syntax Highlighting can be used to highlight any of the items that are found in the Classes section of the Navigator panel.

With this option enabled, you can then configure the display of these items using the Colors panel and setting up the Tags - * color category items.

Cheers Jussi
janis77blava
Posts: 4
Joined: Thu Oct 27, 2011 11:56 pm

displaying function/procedure names in different color/bold

Post by janis77blava »

Thanks for your prompt response.

Your suggestion works well, except for cases where code is calling functions external to the specified 'workspace/project' code base - as, for example, OS calls.

Do I need to include all referenced system header files into my 'workspace/project' folder to solve this? Will that be enough for Zeus to create and find all tags?

Thank you.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Do I need to include all referenced system header files into my 'workspace/project' folder to solve this? Will that be enough for Zeus to create and find all tags?

That will work.

Another more generic solution would be to create a new workspace just for these external references.

This will then create a tag database just for those references.

You can then attach that database to any document type by using the Tag Database panel found in the docment type setup.

And this change to the document type should also feed through to the syntax highlighting.
janis77blava
Posts: 4
Joined: Thu Oct 27, 2011 11:56 pm

Post by janis77blava »

Thanks.

Does such tag database have to built on my machine or could it be imported as a stand-alone external tag database? I.e., could I use someone else's tag database (assuming the tag database is for widely used OS library, as Linux kernel)? Thank you.

Regards.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Does such tag database have to built on my machine or could it be imported as a stand-alone external tag database?

No it does not have to be built on your machine.

In fact you can use the Tags, Database Builder tool (which is just the xBuilder.exe file) to create a stand alone tag database.

The resulting tags databse just needs to be found in the zTags folder found in the Zeus intall directory.

But if the source code is not on you machine then naturally the Tags, Goto Definition, Goto Declaration menu items will not work as they wont be able to load the source file.

Cheers Jussi
janis77blava
Posts: 4
Joined: Thu Oct 27, 2011 11:56 pm

Post by janis77blava »

Understood. Thank you.
Post Reply