Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
OpenCL editing in Qt Creator
Michal Hradecky last edited by
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.