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

Syntax highlighting invalid

Started by Loaden, September 18, 2010, 12:38:28 PM

Previous topic - Next topic

Loaden

   SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1); // valid
#ifdef __WXMSW_
   SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1); // invalid
#endif



MortenMacFly

Quote from: Loaden on September 18, 2010, 12:38:28 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Loaden

I see, but why not change color from black to grey?
It is possable?

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

MortenMacFly

Quote from: Loaden on September 20, 2010, 01:57:46 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

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:

// 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!]

MortenMacFly

Quote from: oBFusCATed 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...
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]