User forums > Help

Editor colors ... file?

(1/2) > >>

RX:
Hello ... i have spent a lot of time in editing the colors for the editor in CB.

Now i want so send this "color theme" to my friend via internet ... witch file must i send to my friend so that he can unse my colortheme?

Does anybody know where to find new colorthemes for CB?

sorry for the bad english ... ^^

peace

thomas:
There is no support for exchanging discrete editor colour sets between different copies of Code::Blocks.

Editor colour sets are either derived from the lexter files (which can be shared, and which work as default settings for your Code::Blocks installation) or are stored inside the configuration file. You can of course copy the entire configuration file, which will also copy the editor colours.

You might possibly be lucky using the cb_share_config tool that Morten wrote, but this is unsupported (and I'm not sure if it can do that, I've never tried it).

MortenMacFly:

--- Quote from: thomas on July 23, 2007, 08:05:02 pm ---but this is unsupported (and I'm not sure if it can do that, I've never tried it).

--- End quote ---
a) it's not unsupported - ask me to add additional features
b) no, it can't share coloursets as of now. Implementing this would be easy though.
With regards, Morten.

dmoore:
I'm sorry to say that whoever wrote the color editing tool in C::B did users a disservice. Instead of simply creating a local copy of the the lexer file in the users codeblocks settings folder and updating the lexer file for the users changes, the color editing tool maintains color changes in the users C::B configuration file (e.g. in default.conf for the default personality). The positive is you can have a different color set for different personalities, but this is a mixed blessing if you want your custom color sets to apply to all of your personalities. Consequently, it is unnecessarily complicated to copy colour settings.

Until Morten comes up with the fix, the only way to "export" them is to manually copy the relevant sections of default.conf (it is a flat text xml file located in \documents and settings\youraccount\application data\codeblocks) to your friends default.conf file. Look for the tag pair <colour_sets> </colour_sets> and copy that into the <editor> </editor> section of your friends .conf file (if his .conf file contains <colour_sets> you will should delete it). There is obviously no guarantee this will work perfectly, so make sure to back up your friends old .conf file

dmoore:

--- Quote from: MortenMacFly on July 23, 2007, 09:50:58 pm ---b) no, it can't share coloursets as of now. Implementing this would be easy though.

--- End quote ---

would it be possible to enumerate the entire configuration file as a tree so people can export arbitrary bits of it? (there may be some parts of the file that would be dangerous to export, but they could be specifically excluded)

I would also like to see specification of colour_set customization in conf files replaced with modifiable local copies of the lexer file (the could be given personality prefixes such as default-lexer-cpp etc). Is anyone else in favor?

Navigation

[0] Message Index

[#] Next page

Go to full version