Author Topic: Problem with Syntax highlighting of include directives  (Read 244 times)

Online lucrol

  • Single posting newcomer
  • *
  • Posts: 7
  • Thrasos3D
Problem with Syntax highlighting of include directives
« on: Yesterday at 11:17:55 am »
Hello !
In this code :
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

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1744
Re: Problem with Syntax highlighting of include directives
« Reply #1 on: Yesterday at 11:47:26 am »
Have you checked "Include host platform defines" in Editor -> Settings -> General settings -> C/C++ Editor settings?

Online lucrol

  • Single posting newcomer
  • *
  • Posts: 7
  • Thrasos3D
Re: Problem with Syntax highlighting of include directives
« Reply #2 on: Today at 10:32:17 am »
Thanks, that settles it.
Bests regards.
Luc
Luc