News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Why is NULL not highlighted?

Started by konjina, March 31, 2018, 03:21:39 AM

Previous topic - Next topic

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

konjina

Quote from: oBFusCATed on March 31, 2018, 10:53:45 AM
It is not a keyword, it is a macro.

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
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

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.
You can always add it to your list of keywords in the syntax highlight settings for c/c++ lexer in the Editor settings.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]