How do I add custom keywords to Dev-C++. The reason I ask is that I want to use Dev-C++ to edit Java files (I like the IDE and compile the java programs externally).
The MS VC IDE allows you to do this using the usertype.dat file, so you can add the Java keywords.
This would also be useful for highliting keywords in C99 (e.g. restrict) and the C++0x proposals (e.g. decltype, design-by-contract (invariant, etc.))
It would also be useful to highlite compound constructs (e.g. std::list, java.io.Serialize) using a different colour to the custom keywords.
Also, it may be useful to associate different keywords/types with different extensions so I can hilight C99/C++0x code differently than IDL, C# or Java.
Regards,
Reece
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
last time i check the only way to do it was to grab the source and compile it yourself with whatever modifications you make. the biggest downfall of dev-cpp is that is not written in c or c++. the second biggest is that it does not use scintilla as a back end. if it did stuff like this would be easy. plus you could write lexers for your own many languages and have dev-cpp deal with them too.
obag
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do I add custom keywords to Dev-C++. The reason I ask is that I want to use Dev-C++ to edit Java files (I like the IDE and compile the java programs externally).
The MS VC IDE allows you to do this using the usertype.dat file, so you can add the Java keywords.
This would also be useful for highliting keywords in C99 (e.g. restrict) and the C++0x proposals (e.g. decltype, design-by-contract (invariant, etc.))
It would also be useful to highlite compound constructs (e.g. std::list, java.io.Serialize) using a different colour to the custom keywords.
Also, it may be useful to associate different keywords/types with different extensions so I can hilight C99/C++0x code differently than IDL, C# or Java.
Regards,
Reece
last time i check the only way to do it was to grab the source and compile it yourself with whatever modifications you make. the biggest downfall of dev-cpp is that is not written in c or c++. the second biggest is that it does not use scintilla as a back end. if it did stuff like this would be easy. plus you could write lexers for your own many languages and have dev-cpp deal with them too.
obag