I’m checking Atom out for C ESP8266 project.
I’ve a question, is it possible to gray out Inactive Preprocessor Code?
As example
#define DEBUG1_ENABLED 0
#define DEBUG2_ENABLED 1
//code below is gray out
#if DEBUG1_ENABLED == 1
int x = 1;
#endif
//code below is highlighted
#if DEBUG2_ENABLED == 1
int x = 1;
#endif
Hello, thank you for your reply. Aren’t the build_flags just for compiler? I need something that does not interact with the compiler, but only with the highlighter engine of the editor.
Thanks.
I am sorry. I thought you were asking about conditional compilation.
If it is syntax highlighting, then no. It is actually not possible. Atleadt I am not aware of any atom plugin that can read the code and automatically grey out the inactive sections.