- Using build 3143 on both Linux & Windows
- new -> set syntax c (or c++) and copy/paste following code:
int foo() { #if 0 return 0; // disabled: OK #elif 2 return 0; // disabled: KO #else return 0; // enabled: KO #endif
#if 1 return 0; // enabled: OK #elif 2 return 0; // enabled: KO #else return 0; // disabled: OK #endif
// from here on, all are enabled (seems too complex for ST) #define SUBLIME_DEFINED #ifdef SUBLIME_DEFINED return 0; #else return 1; #endif
#ifdef SUBLIME_NOT_DEFINED return 0; #else return 1; #endif }
- syntax coloring doesn’t apply correctly as per
Maybe a feature request once this is correctly handled: be able to force preprocessors on (or off) per project, for the ones that are provided by compilers and thus not in source files.
Thanx for considering this issue