News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Problem with Syntax highlighting of include directives

Started by lucrol, July 27, 2025, 11:17:55 AM

Previous topic - Next topic

lucrol

Hello !
In this code :

void internationalisation() {
#if (defined(_WIN32) || defined(_WIN64))     // Using Windows 10 !
    system("CHCP 65001 > NUL");
#else
    ;// Linux terminal normaly in UTF-8, nothing to do
#endif // _WINxx
}

I use CB on Windows 10 and the else branch is hilighted !?
What's the matter?
Bests regards
Luc

Miguel Gimenez

Have you checked "Include host platform defines" in Editor -> Settings -> General settings -> C/C++ Editor settings?

lucrol

Luc