User forums > Using Code::Blocks
Syntax Highlighting C++/SDL
ravenshade:
Hi,
Given the popularity of SDL... I can't quite figure out how to get the Syntax Highlighting working for it. For instance SDL_Surface isn't highlighted nor is NULL which probably should be too.
I'm also using Linux as well so how the heck can I get it working?
Thanks
oBFusCATed:
There is no semantic highlight in C::B yet.
Folco:
You can add the SDL types to the list of the highlighted keywords.
ravenshade:
Null looks a bit weird in bright green or blue, it's supposed to be red or something similar. I had thought that the different 'sets' of keywords would have different colours or styles attached to them but as far as I can tell only sets 1 & 2 do anything at all. Though I am using the sets at the moment just to get round the problem.
I'm not really looking for 'Semantic highlighting' what would be nice is if all the sets had different colour codes/styles to them. I can't seem to figure out how to add a custom lexer either, the tutorial on the wiki doesn't give much information as to where things are stored and may involve further coding (which given that I'm learning, probably isn't a good idea for me to mess with). In theory I'd like to just extend the lexer and add in my own keywords and stuff but I don't know whether that would work as such.
Alpha:
Some information here.
Navigation
[0] Message Index
[#] Next page
Go to full version