Bug found on: Code::blocks 13.12 rev. 9501
OS: windows 7 x64 SP1
Changing any foreground syntax highlighting color (Settings -> Editor... -> Syntax Highlighting) to "default", either by pressing the D button or clicking the color button and choosing the default color from the color box, DOES change text color highlighting for the current session, BUT all colors are reverted to their default scheme values when the IDE is closed and reopened: seems that the color scheme is not correctly saved.
Note: any background color change, default or not, saves correctly: the bug affects only foreground color changes.
Note 2: if you change foreground colors (not to "default"), save, close, reopen codeblocks (color scheme correctly saved) and then change any foreground color to "default", save, close, reopen codeblocks, the color scheme reverts to the original default scheme coming with codeblocks and not to the color scheme just saved.
Note 3: creating other color schemes does not solve the problem, the bug affects every color scheme.
13.12 version is quite old. Can you see whether this issue happens in the latest nightly build revision? Thanks.
I can confirm that this problem exists in current trunk for matching/unmatching brackets hightlight scheme (at least). Default background and foreground are not normally applied because these styles are excluded from apply list. Opening and closing of syntax highlight settings window set them somehow.
Attached patch seems to solve this problem.
Last edit: Dimitry Sibiryakov 2018-12-14
This issue should be resolved by commit 11930.
Thanks for testing
I'm sorry to disturb you but this fix seems to be missed in release 20.03. Is it intended?
Probably the fix happened too late for the release. You can use a night build or apply the patch and rebuild.