Author Topic: Syntax highlighting invalid  (Read 5850 times)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Syntax highlighting invalid
« on: September 18, 2010, 12:38:28 pm »
Code
    SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1); // valid
#ifdef __WXMSW_
    SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1); // invalid
#endif

« Last Edit: September 18, 2010, 12:40:12 pm by Loaden »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Syntax highlighting invalid
« Reply #1 on: September 18, 2010, 02:19:40 pm »

This is not invalid, but a new feature of scinitilla (and already reported in the forums). However, we should make this an option.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Syntax highlighting invalid
« Reply #2 on: September 20, 2010, 01:57:46 am »
I see, but why not change color from black to grey?
It is possable?

Code
#if 0
int grey() {} // Because have not syntax highlighting, so make the corlor from black to grey?
#else
void black();
#endif

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Syntax highlighting invalid
« Reply #3 on: September 20, 2010, 07:04:16 am »
I see, but why not change color from black to grey?
It is possable?
I think so, yes.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Syntax highlighting invalid
« Reply #4 on: September 20, 2010, 09:30:11 am »
Morten: do you feed the scintilla with the correct list of defines for the edited file?
If not please disable this feature for now, because it is useless...

Also, what happens if I open file that is not part of a project or it is part of a Makefile project?
I think both should have this automatically disabled...

Another thing: does scintilla open include files? What will happen if I've got:
Code
// a.h
#define A_TEST

// a.cpp
#include "a.h"

#ifdef A_TEST
    .... code1 ....
#else
    .... code2 ....
#endif
Which of the two will be highlighted and which won't?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Syntax highlighting invalid
« Reply #5 on: September 20, 2010, 09:38:48 am »
Morten: do you feed the scintilla with the correct list of defines for the edited file?
If not please disable this feature for now, because it is useless...
I got that already on my ToDo list, however, I am technically "offline" atm, so this will have to wait a little.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ