News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

USER KEYWORDS

Started by jozzzz, January 26, 2006, 01:13:34 PM

Previous topic - Next topic

jozzzz

HI, HOW I CAN ADD "USER KEYWORDS" TO CODEBLOCKS?
THANX FOR ALL ANSWER. :)

AkiraDev

In "settings", choose "editor", then go to the "syntax highlighting" category.
You should find a "Keywords" button there.

Game_Ender

AND TRY NOT TO USE TO MANY CAPS IN THOSE KEYWORDS ;)

post->setsarcasim("off");

sethjackson

Quote from: Game_Ender on January 26, 2006, 06:43:36 PM
AND TRY NOT TO USE TO MANY CAPS IN THOSE KEYWORDS ;)

post->setsarcasim("off");

:lol:

jozzzz

but  in  editors setings is two cases:   "Keywords" , and "User Keywords" :). I want change the "User Keywords" ,this have darkgreen color as default.
thx :)

jozzzz

i want add some "User Keywords"...... plz ... :D

thomas

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

jozzzz

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

jozzzz

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


thomas

Quote from: jozzzz on February 04, 2006, 09:50:31 AM
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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

jozzzz

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"/>

jozzzz

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

mandrav

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.
Be patient!
This bug will be fixed soon...

PMike

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

jozzzz

Thanks Mistr,  its OK..  uz to slape :)))))))))  uraaaaaaaa :)))))))