Sublime Forum

Switching off SublimeClang for some file types

#1

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?

0 Likes

#2

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

0 Likes