Discussion:
c++ syntax highlighting
hg
2007-05-14 13:15:10 UTC
Permalink
Hi,

in c++-project if I type a preprocessor construct like

#if 0
some grayed code
#else
some black colored code
#endif

the first part behind the '#if 0' is correctly displayed in gray cause it's
not in use.
But if I change the statement into "#if 1' both parts are displayed as beeing
active in black color:

#if 1
some black colored code
#else
some black colored code
#endif

Shouldn't now the else block be displayed in inactive gray color?

Best wishes
Heiko
Andreas Pakulat
2007-05-14 13:24:54 UTC
Permalink
Post by hg
in c++-project if I type a preprocessor construct like
#if 0
some grayed code
#else
some black colored code
#endif
the first part behind the '#if 0' is correctly displayed in gray cause it's
not in use.
But if I change the statement into "#if 1' both parts are displayed as beeing
#if 1
some black colored code
#else
some black colored code
#endif
Shouldn't now the else block be displayed in inactive gray color?
I doubt kate's highlighter is able to parse this, but feel free to file
a bugreport against kate. KDevelop doesn't do any syntax highlighting in
KDevelop3.

Andreas
--
Give your very best today. Heaven knows it's little enough.
Continue reading on narkive:
Loading...