User forums > Nightly builds

The 13 august 2007 build (4368) is out.

<< < (2/3) > >>

killerbot:
file it as a feature request. M$ has this but they have it because they use the compiler for code completion, and as such they know which ones are active. Rather difficult !

Steven 'lazalong':

--- Quote from: killerbot on August 14, 2007, 09:16:59 am ---file it as a feature request. M$ has this but they have it because they use the compiler for code completion, and as such they know which ones are active. Rather difficult !

--- End quote ---
Ok - done  http://developer.berlios.de/feature/?func=detailfeature&feature_id=3645&group_id=5358

thomas:
Don't be disappointed if this takes a long time to be implemented, or if it is never implemented, though.

It would take considerable work to be implemented, and it would take considerable CPU time at runtime, too. It is easier for Microsoft to do that, because they only support one compiler architecture which has been designed for that purpose, too.

For us, it means that we would have to keep two copies of the text, filter it through the preprocessor (which requires executing an external process), and do a binary comparison of the two to figure out the differences (which is tough).
Or, we would have to create a pseudo-sourcefile on the fly that contains all preprocessor commands of the original and that conditionally enables/disables marker textblocks via the preprocessor (again, by launching an external process).
This would have to be done after every edit, unless we add a parser that detects whether a preprocessor directive was changed, too.

raph:
Giving codecompletion an basic c preprocessor would improve its quality (e.g. WinAPI functions could be parsed then).
Cc could give scintillas syntax highlighting some hints (e.g. give a variable an unique color etc).

byo:

--- Quote from: raph on August 14, 2007, 03:30:31 pm ---Giving codecompletion an basic c preprocessor would improve its quality (e.g. WinAPI functions could be parsed then).
Cc could give scintillas syntax highlighting some hints (e.g. give a variable an unique color etc).

--- End quote ---

AFAIK CC have basic preprocessor, the problem is that wxScintilla doesn't allow generating really custom lexers - you choose one of predefined which can be used for given language and customize it (add special identifiers etc).
To add extra colourising (like changing colour of identifiers) we would have to make big code changes into wxScintilla code. That would be really great because of all the features it would introduce, but it may be some harder task.

Regards
   BYO

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version