#ifdef block highlighting

General questions regarding the usage of CodeLite
SteelRat
CodeLite Enthusiast
Posts: 17
Joined: Sat Dec 07, 2013 11:51 am
Genuine User: Yes
IDE Question: C++
Location: Russia
Contact:

#ifdef block highlighting

Post by SteelRat »

__WXGTK__ is defined somewhere in wxWidgets and in Project's settings, but code is highlighted as excluded.
highlight_error.png
And if i defined something like #define VAR 1 and use it in code as #if VAR .. #endif - code highlighted as excluded. But if i do #if VAR != 0 ... #endif - everything is fine.
upd: #if does not work correctly anyway. #if VAR highlights after #else block, #if VAR != 0 highlights first block. And no matter what is real value of VAR.
You do not have the required permissions to view the files attached to this post.
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: #ifdef block highlighting

Post by eranif »

You need to enable clang for this feature to work properly + run at least one full rebuild
Otherwise, it should work

Eran
Make sure you have read the HOW TO POST thread
SteelRat
CodeLite Enthusiast
Posts: 17
Joined: Sat Dec 07, 2013 11:51 am
Genuine User: Yes
IDE Question: C++
Location: Russia
Contact:

Re: #ifdef block highlighting

Post by SteelRat »

Thank you, it helped.
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
Post Reply