I'm using Eclipse CDT for a C project with custom makefiles, and I want to use the inactive code highlighting as proposed in the answers to question 739230. The automatic discovery of active/defined symbols does not work for my makefiles. Instead I have created a text file for each build target listing the active symbols.
So my questions are:
- How do I load these settings into a the project without going through the GUI (folder properties -> Paths and Symbols -> Symbols)?
- And how do I choose which configuration/build target the symbols are added to?
Directly editing the the .cproject file and adding lines like this works:
<listOptionValue builtIn="false" value="HIRES_OUTPUT"/>
But only if I go through the GUI to create the first key for each build target. I would prefer to create the build target and import the symbols in one operation.
Writing an Eclipse plugin from scratch seems like overkill for this task.
Any ideas for a smarter way to do this?