News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Syntax highliting problems with recent svn builds ( > rev 8032 )

Started by earlgrey, August 12, 2012, 07:50:30 AM

Previous topic - Next topic

earlgrey

- C++ preprocessor directives remain uncolorized ; did I miss a new option ?

- my personal syntax highlight settings are...hum...in fact where have they gone ?

* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

earlgrey

* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Radek

On starting Code Blocks today (after some time), I also got surprised what happened to highlighting. Version 8164, svn, 32-bit Gnome, Debian. The highlighting used to work perfectly all the time but now:

- #include directives aren't highlighted (and neither do other compiler directives)
- all "non-chars, non-digits" like brackets, colons, semicolons, operators, etc. have "selected" background and default foreground (like they are in a block)
- selection does not work at all, at least, visually
- the highlighting settings has changed for some reason at some items (comments or digits, for example)

Okay, I have fixed the unwanted changes but I wasn't able to put in work highlighting for compiler directives, "non-chars, non-digits" and selection. The settings for highlighting seem to be okay, all colors are correct in the "choose color" part of the setting dialog but wrong in the "demonstration" part (the piece of code below) and in the editor itself. Closing and reopening does not help. The settings seem to be ignored partially and some defaults seem to be used instead. Unusable.

Alpha

If possible, can you update to revision 8242 (or newer)?  This revision fixes (or attempts to fix) a longstanding issue with loading custom color schemes.

If problems persist, could you post your default.conf?

Radek

The latest version for Debian seems to be 8164. I searched for some newest ones but I found only older ones. default.conf is here:

Alpha

Here is a (hopefully) fixed version of your configuration file.  There is a problem with the older code for loading customized color schemes (causing certain types of updates to the lexer to brake custom color schemes), which is fixed in the trunk.  To resolve this, you can: swap your default.conf with the attached one (while waiting for the next package), or compile your own trunk build from source, or suffer with weird highlights :) and just wait for the next pre-built package (which should be soon, as there was just a nightly).

earlgrey

The "preprocessor directives" bug is no more present in svn 8248 ( from Jens Lody repository ).

Alleluja.

_BUT_ at first run :

 * the "Comment ( documentation )" and "Comment line ( documentation )" colors for "C++ syntax highlight" where not loaded correctly. Others colors did.

 * when I tried to reset the 2 values above, it was impossible from the "hex text entry" of the color chooser (the #xxxxxx one ), it was only possible from the 3 decimal RGB text entries.

After closing C::B and relaunch it, these problems had gone away.
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Radek

Thanks, Alpha. The fixed default.conf works with 8164 and also with my new 8248 :) Code Blocks now look like they used to do. I am happy :)

Alpha

Glad it worked.

Quote from: earlgrey on August 26, 2012, 07:10:48 AM
After closing C::B and relaunch it, these problems had gone away.
Not sure what the problem was, but if it disappeared, I guess it is nothing to worry about :).