Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Custom coloring of #ifdef code blocks
Custom coloring of #ifdef code blocks [message #1470270] Wed, 12 November 2014 07:58
Robert Smith is currently offline Robert SmithFriend
Messages: 2
Registered: November 2014
Junior Member
I have C project which has different flavors for number of products.
There are common part of code which are enabled all the time and there are blocks of code which is enabled only for certain product flavor and enclosed with #ifdef.

I wonder whether there is option in Eclipse editor to customize color highlighting per each defined symbol?

For example:

#ifdef PRODUCT_A
/* Highlight everything with red */
#endif /* PRODUCT_A */


#ifdef PRODUCT_B
/* Highlight everything with blue */
#endif /* PRODUCT_B */


#ifdef PRODUCT_C
/* Highlight everything with green */
#endif /* PRODUCT_C */


Thanks
Previous Topic:"Cannot run program "sh"" error
Next Topic:Binary not found
Goto Forum:
  


Current Time: Thu Oct 10 16:55:25 GMT 2024

Powered by FUDForum. Page generated in 0.03865 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top