On 11/9/2010 8:57 AM, ext André Hartmann wrote: > Hi, > > first of all, I like to thank all for this great piece of software. > > I'm currently using Qt-creator 2.1 Beta on Windows and it works like a > charm. > > We use Qt-creator for Qt development (of course) but also for > microcontroller projects. > > We have a C compiler for a special coprocessor (Freescale XGate), which > usese the extension .xc for it's source files. The source itself is pure C. > > I see that there is already a list of different extensions that are > recognized as C/C++ source files, is there a easy way to extend this > list to the .xc extension? > Hi André.
As you have probably seen, the extensions Creator recognizes as C or C++ code are specified in the file src/plugins/cppeditor/CppEditor.mimetypes.xml. However, this file is embedded as a resource. So you would have to recompile. Concerning about whether or not this extension should be included by default in Creator I was wondering... Is this really because of the compiler or just some project convention? Just by curiosity I took a look at this Freescale XGate compiler manual I found on the Internet (http://cache.freescale.com/files/soft_dev_tools/doc/ref_manual/CW_Compiler_XGATE_RM.pdf - naturally, not sure if it's exactly your case) and it actually suggests that source files should have .c as an extension. Regards, Leandro. -- Leandro T. C. Melo Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator