Page 1 of 1
displaying function/procedure names in different color/bold
Posted: Fri Oct 28, 2011 12:07 am
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.
Posted: Fri Oct 28, 2011 12:34 am
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
displaying function/procedure names in different color/bold
Posted: Fri Oct 28, 2011 9:08 pm
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.
Posted: Sun Oct 30, 2011 11:22 pm
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.
Posted: Mon Oct 31, 2011 4:40 pm
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.
Posted: Mon Oct 31, 2011 11:29 pm
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
Posted: Tue Nov 01, 2011 7:06 pm
by janis77blava
Understood. Thank you.