User forums > Using Code::Blocks
Sintax highlighting #define
(1/1)
Manolo:
Hello
The sintax highlighting colour for compiler directives may get loose.
For long #define macros (as such of wx's dynarray.h) as soon as a comment is finished, the colors returns to "normal code".
...
#define _WX_DECLARE_BASEARRAY(T, name, classexp) \
classexp name \
{ \
typedef CMPFUNC SCMPFUNC; /* for compatibility wuth wxUSE_STL */ \
public: \
name(); \
...
I don't know what is desired, all macro in green or just #define
But I don't like the way it is by now.
Thanks
Manolo
Jenna:
It's a bug in scintillas C/C++-lexer, it's easy to have all code highlighted as preprocessor-code (including the comments), but that's most likely not what you expect.
I will look into it and search the web/scintillas website for this issue and a possible solution.
Manolo:
Thanks, Jens
Just a suggestion:
I would like to see the preprocessor comand (#define) in green and the rest of the macro in "normal code colors" but dimmed or with some clear background.
Cheers
Manolo
Jenna:
I found this thread: http://www.mail-archive.com/scite-interest@lyra.org/msg01155.html
It looks like the scintilla devs are not willing to change this behaviour.
Navigation
[0] Message Index
Go to full version