News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

What is //(* supposed to be?

Started by humodz, December 04, 2013, 02:56:55 PM

Previous topic - Next topic

humodz

When I write an one-line comment that starts with (*, codeblocks makes this strange highlighting:

Everything after the line with //(* becomes blue/purple and italic, and the text in the same line uses the correct comment highlighting (brown in my case). Even though the code compiles correctly, this problem messes the whole code's highlighting after that point.
I tried changing everything in syntax highlighting to black, but that thing persists.

Jenna

//(* and //*) are the tags used by wxSmith to mark auto-generated text-blocks.

If you uncheck "Settings -> Editor.. -> General settings -> C/C++-Edito settings -> Highlight wxSmith sections differently" the highlighting should be normal again.

humodz

Thanks. I never used wxSmith, so didn't know about that setting.

Alpha

Of note, 13.12-RC1 (and recent nightlies) use stricter detection rules, by which this given example is classified as regular code, not wxSmith generated.