User forums > Using Code::Blocks
Why is NULL not highlighted?
(1/1)
konjina:
Basically what's in the title.
Is there a particular reason for this keyword not to be highlighted?
oBFusCATed:
It is not a keyword, it is a macro.
konjina:
--- Quote from: oBFusCATed on March 31, 2018, 10:53:45 am ---It is not a keyword, it is a macro.
--- End quote ---
My bad, sorry.
In any case, I think it should be highlighted. Every other IDE/Text editor does it. It's quite useful to have stand out.
gd_on:
if NULL is used for a pointer, you can replace it by nullptr, which is highligthed.
gd_on
oBFusCATed:
--- Quote from: konjina on April 02, 2018, 09:44:09 am ---In any case, I think it should be highlighted. Every other IDE/Text editor does it. It's quite useful to have stand out.
--- End quote ---
You can always add it to your list of keywords in the syntax highlight settings for c/c++ lexer in the Editor settings.
Navigation
[0] Message Index
Go to full version