Higlight Higlight *.cu files

Hi All,

How I can highlighting syntax in *.cu files in Visual Studio 2005?


Take a look in the SDK’s doc folder, there’s has a sub-folder called syntax-highlighting there.


It’s quite simple:

  1. Look under Tools->Options->Text Editor->File Extensions.
  2. Type under Extension (without the <> ofcourse).
  3. Choose editor: Microsoft Visual C++
  4. Press apply and OK.
  5. Restart MSVC.

How can i do similar thing in Emacs. Thanks

I’ve got some stuff for katepart, if you wish I can post it.


Normally, when i open .cu file with emacs.

I use M-x c++mode to show it as C++ file. But I want it automatically highlight every time

i open it as a normal c++ files.


Add the following to your .emacs file:

(add-to-list 'auto-mode-alist '("\.cu\'" . c++-mode))


Has anyone been able to get tab-completion working in VS2005? I have the highlighting working, but no completion.