Sublime Forum

CUDA Syntax Highlight

#1

Hi, Can you add CUDA syntax highlight by default. Originally, in Sublime2 I could open the *.cu or *.cuh file and goto View->Syntax->C++, however in Sublime3 this option is disabled. Even if you don’t add the CUDA syntax definition, just defaulting to C++ is very useful. Thanks!!

0 Likes

#2

I don’t see .cu or .cuh in the file types in the c++ language file (or I could just be missing them). I’m not sure why the option is disabled for you, so that might be something worth looking into. Anyways, consider the ApplySynatx plugin (formally DetectSyntax)

0 Likes