CUDA syntax highlighting for Kate/Kdevelop under linux XML CUDA syntax highlighting file for Kate/Kd

For anyone who use Kate/Kdevelop to write CUDA application files, I wrote a simple XML file to be added to the others already existing.

This is a very first version. I added different CUDA contexts to be personalized:

  • data types
  • keywords
  • automatic variables
  • atomic functions
  • device functions
  • runtime API functions
  • driver API functions
  • kernel launch <<< >>>
    Colors and styles are pseudo-random for now.
    There are many other things to be further added, like constants values, error codes, and so on so forth…

Save the attached file to your home/.kde/share/apps/katepart/syntax/ (or /usr/share/apps/katepart/syntax/, or to a different folder depending on your distribution) to go!

You can find the file also here: http://www.ce.unipr.it/people/mussi/downlo…/c_CUDA_2.1.xml

Any comment or suggestion is very welcome!
Please don’t hesitate to reply with any of them.

Enjoy!
c_CUDA_2.1.xml (22 KB)

Thanks =)

Good work! :thumbup: Thanks a lot!

Ottimo lavoro, grazie ;)

Just for quick reference and because I always forget.

In ubuntu the syntax folder is at: /usr/share/kde4/apps/katepart/syntax

Hello. I tried to use attached XML in my CUDA-project under QtCreator (it is declared, that QtCreator uses Kate syntax highlighting format). But nothing has appeared :sad:
Does anybody know what I’m doing wrong?
I added file to the following directory: /opt/QtSDK/QtCreator/share/qtcreator/generic-highlighter