User forums > General (but related to Code::Blocks)

Syntax Format of typedefs

(1/1)

RabidLockerGnome:
Hi, this is just a small request, and it might already be possible to do this, but I'd like ot  be able to set the font formatting of things that i custom typedef.  so if i did :

typedef unsigned int uint;

i would like to be able to use the world uint and have it show up bolded like a regular type, etc..etc..

would this be possible?

mandrav:
Only if you manually add them as user-keywords.
To do this, go to "Settings->Editor->Syntax highlighting", select the "C/C++" lexer, press the "Keywords" button and add whatever you want (space-separated) in the set #2.

squizzz:
Alternatively, if you use GNU compiler (MinGW/GCC) nothing prevents you from using types like uint32_t (just include <stdint.h>). This belongs to C standard for some time, and will presumably be incorporated into upcoming C++ standard (C++0x). C::B already shows this one bolded.

Navigation

[0] Message Index

Go to full version