News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Syntax Format of typedefs

Started by RabidLockerGnome, September 07, 2006, 10:41:23 PM

Previous topic - Next topic

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.
Be patient!
This bug will be fixed soon...

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.
this space is for rent