Changing the colour of CUDA code's highlight in Nsight Eclipse Edition.

An example of my problem: https://i.imgur.com/LP33WFj.png
Basically I’m using a dark theme (Moonlight UI for Eclipse), however it seems that there is no way that I found to change the colour in which CUDA code is highlighted in. Couldn’t find any information using Google, maybe someone here has any ideas.

Since apparently Eclipse reads colours from system for some things - The fact that I’m using Ubuntu 14.04 with Ambiance dark red from http://www.noobslab.com/2014/05/ambiance-dark-with-red-flavor-gtk-theme.html might be useful. CUDA Toolkit’s version is 7.5.

I have the same problem and it is not link with the colour system.

I think the problem is perhaps the theme is not design for cuda language ?

I too had this problem. Seems it is caused by “Device Code Highlighting.” This can be turned off with Window -> Preferences -> C/C++ -> Editor -> Syntax Coloring -> Elements: Cuda C -> Device Code Highlighting.

Enabled: http://imgur.com/jh0KKvV
Disabled: http://imgur.com/DE34Fbb

1 Like