OpenCL editing in Qt Creator
Unsolved
Qt Creator and other tools
-
wrote on 20 Oct 2016, 12:53 last edited by
Hello,
I'm using Qt Creator to write a C++ Makefile project which includes editing OpenCL files with with .kernel extension. But Qt Creator doesn't recognize it as OpenCL code and underlines OpenCL syntax.I've tried to download additional General Highlighter files for OpenCL but with no success, because the opencl.xml in ~/.config/QtProject/qtcreator/generic-highlighter said it's only for *.cl extensions. So I've manually added the *.kernel extension to the xml but it didn't help. Qt creator also don't know about mimetype="text/x-clsrc" and I there is no button to add a new MIME type in Options->Environment->MIME types.
So the question is, how can I force Qt Creator to support OpenCL syntax.
Many thanks.
1/1