Can I apply color schemes globally?

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
jbrandwood
Posts: 11
Joined: Fri May 30, 2014 1:27 pm

Can I apply color schemes globally?

Post by jbrandwood »

I'm setting up a custom color scheme, and so am making frequent tweaks to it as I narrow in on my own personal idea of "perfection" :wink:

When I make a change to a color in the scheme in the current document, I would like that change to apply to all of the document types that use that same scheme ... but apparently it doesn't work that way.

Instead, I seem to have to manually edit every single document type and change it's color scheme to something else and then change it back to my desired color scheme in order for Zeus to re-read the current values in the scheme.

This seems a bit cumbersome, and I'm thinking that I might have to write a Python script to hack all the color files in the zConfig directory.

Am I missing something?

Is there an easy way to do this?
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

When I make a change to a color in the scheme in the current document, I would like that change to apply to all of the document types that use that same scheme ... but apparently it doesn't work that way.

That is correct. The colors are stored on a per document type basis.
This seems a bit cumbersome, and I'm thinking that I might have to write a Python script to hack all the color files in the zConfig directory.

Doing it by hand is indeed cumbersome.
Am I missing something?

No need to make a write a script when a simple batch file.

To do this just run the following command in Zeus to find all the color files:

Code: Select all

dir C:\Users\<user name here>\AppData\Roaming\Xidicone\Zeus\zConfig\Zeus*-coloring.ext
Pick one of the colors as the standard, lets say Zeuscpp-coloring.ext and then turn that Zeus output into a batch file:

Code: Select all

@echo off
cd C:\Users\<user name here>\AppData\Roaming\Xidicone\Zeus\zConfig\
copy Zeuscpp-coloring.ext Zeus4gl-coloring.ext
copy Zeuscpp-coloring.ext Zeusacl-coloring.ext
copy Zeuscpp-coloring.ext ZeusAda-coloring.ext
copy Zeuscpp-coloring.ext Zeusasm-coloring.ext
copy Zeuscpp-coloring.ext Zeusaspx-coloring.ext
copy Zeuscpp-coloring.ext Zeusbas-coloring.ext
...
Just do this with Zeus not running and I would also backup the zConfig just in case.

Cheers Jussi
jbrandwood
Posts: 11
Joined: Fri May 30, 2014 1:27 pm

Post by jbrandwood »

OK, thanks, I'll give that a try.

I took a look at the *-coloring.ext files in a hex editor and saw that they embed the file name within the data and didn't realize that it wasn't important and would be ignored :)
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

OK, thanks, I'll give that a try.

That should work and in fact that's how the Zeus installer script makes the default colors in all the document types match ;)
(has the) file name within the data and didn't realize that it wasn't important and would be ignored
It probably was important once ;)

Those config file formats date back the very early versions of Zeus and as such are now very old.

Cheers Jussi
Post Reply