OpenCL editing in Qt Creator



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.