User forums > Using Code::Blocks
Issues with Syntax Highlighting ans Code Completion
scarphin:
I've recently discovered what 'user keyword' in syntax highlighting is used for. From what understand it highlights the entries in 'keywords' sets but it doesn't highlight the 3rd set and the sets after the 3rd. Is there a specific reason for this? There is the option 'keyword sets to additionally include' under the code completion settings, does that got anything to do with highlighting?
I can't get code completion work with function arguments like the 'param1, param2' in the code below, anything wrong by my side?
--- Code: ---void func1(int param1, int param2)
{
... // Can't get code completion work with param1, param2 here!
}
--- End code ---
I can't get it work with the standard library also. Like say cout for example, it doesn't kick in after the dot when I type 'cout.' . I'm guessing it doesn't parse the header (i.e. <iostream>) files. How can I manage that?
Thnx...
OS: Win7
CB: Feb 11 nightly svn 7790
MortenMacFly:
--- Quote from: scarphin on February 27, 2012, 12:29:39 pm ---I can't get code completion work with function arguments like the 'param1, param2' in the code below, anything wrong by my side?
--- Code: ---void func1(int param1, int param2)
{
... // Can't get code completion work with param1, param2 here!
}
--- End code ---
I can't get it work with the standard library also.
--- End quote ---
Works fine here. CC Settings? Steps to reproduce (including creation of project / code)? Did you enable "Debug SmartSense", what do you see?
scarphin:
Deleted the 'default.conf' file, launched CB, created a new 'console project', tested with the code below and still doesn't work. Attached a screen image for the CC settings, they should be the defaults. How do I 'Debug SmartSense' btw?
--- Code: ---#include <iostream>
using namespace std;
void testFunction(int, int);
int main()
{
cout << "Hello world!" << endl;
return 0;
}
void testFunction(int param1, int param2)
{
int testVar;
testVar=param1;
}
--- End code ---
[attachment deleted by admin]
MortenMacFly:
--- Quote from: scarphin on February 27, 2012, 01:22:19 pm ---Attached a screen image for the CC settings, they should be the defaults. How do I 'Debug SmartSense' btw?
--- End quote ---
The C/C++ parser settings are missing. Any please, use an image resource webpage like imageshack, as our forum webspace is limited.
To debug smart sense, see here:
http://wiki.codeblocks.org/index.php?title=Code_Completion_Design#Debug_Smart_Sense_log_output
scarphin:
Sorry linked them below. I still think these settings should be the defaults. I'm going to try 'debug smartsense' with my settings though.
CC settings:
C/C++ Parser settings:
C/C++ Parser settings adv:
Navigation
[0] Message Index
[#] Next page
Go to full version