This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KWrite/Kate and Cuda files

Tags: None
(comma "," separated)
alexge
Registered Member
Posts
2
Karma
0

KWrite/Kate and Cuda files

Wed Jul 10, 2013 7:34 pm
Hello!

I apologize if this is not the place to be posting this.
I normally use kwrite for C++ development. However recent events have seen me do a fair amount of Cuda development, and to my surprise kwrite & kate do not parse *.cu or *.cuh files as they normally do with *.h, *.hpp, *.hxx, etc.
I read https://bugs.kde.org/show_bug.cgi?id=294695 where the last and only comment suggests that I can somehow associate *.cu with c++ mime types, and thus enable basic parsing of such files.

Has anybody done it?
If not, what would be the steps to do this? I've spent some time digging around SystemSettings & file associations, but this seems to be beyond me.

Thanks to anyone who can help.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: KWrite/Kate and Cuda files  Topic is solved

Wed Jul 10, 2013 8:17 pm
Go to Settings -> Configure -> Open/Save -> Modes & Filetypes. Select C/C++, and add the mimetypes and extensions you want to associate that highlighting style with.

Hope that works ;)

Greetings,
Sven


I'm working on the KDevelop IDE.
alexge
Registered Member
Posts
2
Karma
0

Re: KWrite/Kate and Cuda files

Wed Jul 10, 2013 9:49 pm
Thank you very much, that worked great :)


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell