Home Download Buy Blog Forum Support

Switching off SublimeClang for some file types

Switching off SublimeClang for some file types

Postby sigfpe on Fri Feb 17, 2012 10:59 pm

I use SublimeClang and love it.

But I also do CUDA development. CUDA code is almost the same as C++ code so I switch on C++ syntax colouring.

But enabling syntax colouring seems to switch on SublimeClang which can't parse C++ code.

So how can I enable C++ syntax colouring, but not SublimeClang, for files whose extension is .cu or .cuh?
sigfpe
 
Posts: 2
Joined: Fri Feb 17, 2012 10:57 pm

Re: Switching off SublimeClang for some file types

Postby jps on Sat Feb 18, 2012 6:10 am

One option is to modify the SublimeClang plugin to add an exception based on the file name.

You can access the plugin via the Preferences/Browse Packages menu item, and then look at sublimeclang.py within the SublimeClang folder
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 19 guests