Code::Blocks Forums

User forums => Help => Topic started by: humodz on December 04, 2013, 02:56:55 pm

Title: What is //(* supposed to be?
Post by: humodz on December 04, 2013, 02:56:55 pm
When I write an one-line comment that starts with (*, codeblocks makes this strange highlighting:
(http://i.imgur.com/LymFCnq.png)
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.
Title: Re: What is //(* supposed to be?
Post by: Jenna on December 04, 2013, 03:11:53 pm
//(* 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.
Title: Re: What is //(* supposed to be?
Post by: humodz on December 04, 2013, 03:20:37 pm
Thanks. I never used wxSmith, so didn't know about that setting.
Title: Re: What is //(* supposed to be?
Post by: Alpha on December 05, 2013, 03:04:37 am
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.