User forums > Help

Limited list of key words

(1/2) > >>

tom0769:
Hi,

i wanted to extend the list of key words and now it's not possible to do this using the editor settings.
I think this is because of the limitations of an normal edit control.
If i edit the registration key
"[HKEY_CURRENT_USER\Software\Code::Blocks\Code::Blocks v1.0\editor\color_sets\default\C_C++\editor\keywords]"
i can add some more keywords, but this isn't a comfortable way.

Isnt't it possible to do this in a file (for example like "TextPad").

Tom

Urxae:
Usually when I need to edit a long string like that in a single-line textbox, I copy-paste to my text editor, turn on word wrap, edit, copy-paste back. It's not ideal, but at least I get to see the entire text at the same time.

thomas:
Not that this helps regarding your actual problem at the present time, but...
There is currently a discussion about where to store configs, and in which format. As it looks, configs will (some day in the future) be saved into an xml file rather than the registry. This will make your life a lot happier.

Until then, well... regedit and copy-paste to an editor, like Urxae said.

thomas:
On a second thought... actually <CodeBlocks>\share\CodeBlocks\lexers pretty much looks like the place to go.

The only problem is that it does not really do anything. I deleted all C++ keywords except for "if" for testing, and nothing happened after restarting code::blocks. I have no clue how you can force it to reload these, going to editor settings and pressing each and every button in the colours tab did not change anything either.
Maybe someone else knows?

Or are the lexers only used for code completion? If so, it may be worthwile to merge these two things, would make sense.

tiwag:

--- Quote from: thomas on August 17, 2005, 09:57:57 am ---On a second thought... actually <CodeBlocks>\share\CodeBlocks\lexers pretty much looks like the place to go.

The only problem is that it does not really do anything. I deleted all C++ keywords except for "if" for testing, and nothing happened after restarting code::blocks. I have no clue how you can force it to reload these, going to editor settings and pressing each and every button in the colours tab did not change anything either.
Maybe someone else knows?...

--- End quote ---
they are copied from the lexer files to registry when installing codeblocks
but there is a button "Reset Defaults" which should reset these settings in the registry
have you tried the button "Reset Defaults" after editing the lexer files ?

Navigation

[0] Message Index

[#] Next page

Go to full version