User forums > General (but related to Code::Blocks)

C::B code editor bug

(1/1)

demone:
Another little bug

In the code editor the macro are "greyened" depending on the fact if a something is defined or not, there's a little bug on windows:

#if defined(_WIN32) || defined(__WIN32__)


The 2 macros

_WIN32

__WIN32__

Are not detected. So the code is showed disabled, but in reality when compiling it is enabled.

I have custom tool chain GCC 4.8


In previous version of C::B the bug was not present (I already selected "this compile target is for Window" from the check boxes)

demone:
there are missing keywords for sintax highlighting..

for now i found missing

"ostream"

don't know if would be usefull adding these keywords too..

flush
endl

maybe not.

MortenMacFly:

--- Quote from: demone on June 02, 2013, 01:56:22 am ---for now i found missing
"ostream"

--- End quote ---
You can do it yourself by adding these to the C++ lexer. Its a XML file which you can edit.

Folco:
The best and simplest way is to use C::B interface (settings -> syntax highlighting) instead of editing XML file by hand.

demone:
infact I added missing words (reading at long list of "std::XXstream" included in highlighting i thought maybe you wanted to add also "ostream" for next release). ;)... There's still the bug for __WIN32 and _WIN32_ not recognized by editor. Is there anyway to specify "I'm compiling on Windows FOR windows" and get correct code showed?

Navigation

[0] Message Index

Go to full version