User forums > Using Code::Blocks
Functions-> Snytax Highlight
Mati:
Hello,
i'm new to this forum.
It is my first time i will use code::blocks and i have just a little question.
There are a few syntax highlight features in the editor settings section. But i'm missing a highlighting for functions....? Am i blind or
is this feature not supported ? Furthermore i'd like to highlight special keywords like typedefs or structs in different color - is this possible?
What is the keyword section? I could neither find any help within the forum nor in the documentation ...
Thanks a lot!
lubos:
i didnt find this also :(
rickg22:
Most of us don't have experience with Visual Studio, we built Codeblocks from scratch. Please explain what's that "functions highlighting", so we could add this feature at a later stage.
Also, the "keywords" tell the editor what are the reserved keywords of your language, for example, in C++ we have "for", "while", "if", etc. Codeblocks allows also to highlight your "custom" keywords. But I didn't program that feature and I don't use it, so I couldn't tell you how it works :P
If you want to highlight a particular type of variables, I'm afraid this isn't possible (yet). However, you can highlight ALL the user-defined variables in a different color. That's the "normal" color :) I set my normal color to bold blue for PHP, and the keywords to black. This way only the function names will be highlighted in blue.
The syntax highlight feature is part of the Scintilla editor component, perhaps you can find more info with them.
Mati:
Thanks for reply,
i try to explain function highlight: Every method/function wihtin a class should be highlighted in another color. Im working wiht linux and under kde it is possible to set different colors for most of keywords (e.g: char, double, int, ....and functions). For example:
int main( ....)
int could be brown and main could be blue for example. Thats what i mean.
Ok - so its possible to highlight only two sets in different color - the user keywords and the "normal" keywords.
Thanks a lot
lubos:
also the different collors for classes would be nice, like
class CMyClass;
CMyClass class1;
class1.intMember = 5;
would be nice to have class1 highlighted with own color also. :D
Navigation
[0] Message Index
[#] Next page
Go to full version