Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
CUDA plugin for Code::Blocks
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: CUDA plugin for Code::Blocks (Read 8747 times)
martiert
Guest
CUDA plugin for Code::Blocks
«
on:
January 12, 2011, 02:21:23 pm »
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.
Logged
ollydbg
Developer
Lives here!
Posts: 6079
OpenCV and Robotics
Re: CUDA plugin for Code::Blocks
«
Reply #1 on:
January 12, 2011, 02:57:38 pm »
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.
Logged
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.
mr.exodia
Single posting newcomer
Posts: 5
Re: CUDA plugin for Code::Blocks
«
Reply #2 on:
February 08, 2013, 12:21:30 am »
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
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
CUDA plugin for Code::Blocks