C++ syntax highlighting issue when using preproc. definitions
Posted: Wed 27 Sep 2017 08:18
Hello!
I'm trying Code Compare currently and I noticed a small but annoying problem when diffing C++ files.
=> All the code that is inside a kind-of "#if" directive will not be highlighted.
For instance:
#ifdef PLATFORM_PS4
// ... everything in here will not be syntax-highlighted
#endif
I have quite a lof of files with directives like this, most of them surround the full file content so I have a lot of missing syntax highlighting.
I think that the application should ignore the #if / #ifdef / #ifndef etc. preprocessor directives or provide a way to specify them.
Is there any workaround or fix planned?
Many thanks!
Best regards,
N.
I'm trying Code Compare currently and I noticed a small but annoying problem when diffing C++ files.
=> All the code that is inside a kind-of "#if" directive will not be highlighted.
For instance:
#ifdef PLATFORM_PS4
// ... everything in here will not be syntax-highlighted
#endif
I have quite a lof of files with directives like this, most of them surround the full file content so I have a lot of missing syntax highlighting.
I think that the application should ignore the #if / #ifdef / #ifndef etc. preprocessor directives or provide a way to specify them.
Is there any workaround or fix planned?
Many thanks!
Best regards,
N.