User forums => General (but related to Code::Blocks) => Topic started by: lucrol on July 27, 2025, 11:17:55 am
Title: Problem with Syntax highlighting of include directives
Post by: lucrol on July 27, 2025, 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
Title: Re: Problem with Syntax highlighting of include directives
Post by: Miguel Gimenez on July 27, 2025, 11:47:26 am
Have you checked "Include host platform defines" in Editor -> Settings -> General settings -> C/C++ Editor settings?
Title: Re: Problem with Syntax highlighting of include directives
Post by: lucrol on July 28, 2025, 10:32:17 am