Author Topic: Syntax Format of typedefs  (Read 4471 times)

RabidLockerGnome

  • Guest
Syntax Format of typedefs
« on: September 07, 2006, 10:41:23 pm »
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?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Syntax Format of typedefs
« Reply #1 on: September 07, 2006, 11:22:43 pm »
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...

Offline squizzz

  • Almost regular
  • **
  • Posts: 132
Re: Syntax Format of typedefs
« Reply #2 on: September 07, 2006, 11:30:28 pm »
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