User forums > Using Code::Blocks

CUDA plugin for Code::Blocks

(1/1)

martiert:
Hi. Is there any plugins for code::blocks to enable syntax highlighting for .cu files. Currently I just use C/C++ highlighting, but would love to have highlighting for the cuda specific keywords to. Like __global__, __local__, etc.

ollydbg:
If you only want to highlight the keyword of CUDA, I think it was quite easy.
In-fact, this is done by the internal editor component-----scintilla, you can add a lexer file for the CUDA language.
SEE:
Creating a custom lexer for Code::Blocks editor - CodeBlocks

and related discussion in our forum.

mr.exodia:
Might be a 'little' too late, but I created this highlighting:

http://codepad.org/PU0rDuGo (lexer_cu.xml)
http://codepad.org/lVRkF9Rk (lexer_cu.sample)

Copy files in share/CodeBlocks/lexers

I will soon release an official patch for cuda build support..

Greetings

Navigation

[0] Message Index

Go to full version