Author Topic: What is //(* supposed to be?  (Read 2794 times)

Offline humodz

  • Single posting newcomer
  • *
  • Posts: 3
What is //(* supposed to be?
« on: December 04, 2013, 02:56:55 pm »
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.
« Last Edit: December 04, 2013, 03:09:09 pm by humodz »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: What is //(* supposed to be?
« Reply #1 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.

Offline humodz

  • Single posting newcomer
  • *
  • Posts: 3
Re: What is //(* supposed to be?
« Reply #2 on: December 04, 2013, 03:20:37 pm »
Thanks. I never used wxSmith, so didn't know about that setting.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: What is //(* supposed to be?
« Reply #3 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.