Code::Blocks Forums
User forums => Help => Topic started by: jozzzz on January 26, 2006, 01:13:34 pm
-
HI, HOW I CAN ADD "USER KEYWORDS" TO CODEBLOCKS?
THANX FOR ALL ANSWER. :)
-
In "settings", choose "editor", then go to the "syntax highlighting" category.
You should find a "Keywords" button there.
-
AND TRY NOT TO USE TO MANY CAPS IN THOSE KEYWORDS ;)
post->setsarcasim("off");
-
AND TRY NOT TO USE TO MANY CAPS IN THOSE KEYWORDS ;)
post->setsarcasim("off");
:lol:
-
but in editors setings is two cases: "Keywords" , and "User Keywords" :). I want change the "User Keywords" ,this have darkgreen color as default.
thx :)
-
i want add some "User Keywords"...... plz ... :D
-
You can always edit the lexer file. Lexer files are called XXXXX-lexer.xml and are located in the shared/lexers directory. Then click on "Reset defaults" to make the editor reload from disk.
-
Thanks Thomas.
How i can edit "User keyword" ?
Keyword i edit if i press "edit keyword", but User keyword is diferent. Is right?
What is User keyword?
Thx Joz
-
I need words "public", "protected", "private" they will have diferent color as that "Keyword".
How i can do this?
Exactly:
Keyword = int long case return etc. (blue color)
I want that User keywords will:
private public etc.
:) thx
-
I need words "public", "protected", "private" they will have diferent color as that "Keyword".
How i can do this?
By editing the lexer... since you're apparently interested in C++, that'll be lexer_cpp.xml.
Delete those words from the Language tag, and add them to the User tag. Then click on "Reload defaults" in editor options.
-
To Thomas:
I make this but color User keyword is some as Keyword. I have setings diferent color for both.Both have dark blue colors.
Examly:
<Style name="Keyword"
index="5"
fg="0,0,160"
bold="1"/>
<Style name="User keyword"
index="16"
fg="0,160,0"
bold="1"/>
>>
>>
>>
<Language index="0"
value="asm auto bool break case catch char class const"/>
<User index="1"
value= "private protected public"/>
-
plz help me , what i have to do ,so Keyword and User Keword have diferent color? :shock:
to je v pedeli, tady se nic nedozvim , v nastavim ruzne barvy a stejne mi to zobrazi vsecko modre
-
I really don't understand what's difficult about it.
1. Go to "Settings->Editor->Syntax highlighting".
2. Select the language you 're interested in.
3. Click "Reset defaults" to make sure the highlighter is sane.
4. Click "Keywords...", add your user keywords in, duh, "User:" and press OK.
5. Select the "User keyword" item in the list and edit it as you like.
-
In r1916 build user keywords works just fine.
But I have a bit different feature request.
It is possible to have more than 1 group of user keywords (with different colors)?
4-5 groups should be enough, I think :)
Regards, Michael
-
Thanks Mistr, its OK.. uz to slape :))))))))) uraaaaaaaa :)))))))