Author Topic: " Syntax highlighting support moved to files"  (Read 11499 times)

Offline tom0769

  • Multiple posting newcomer
  • *
  • Posts: 42
" Syntax highlighting support moved to files"
« on: July 26, 2005, 08:50:31 am »
Hi,

I've just downloaded the new version of c::b.
Looks great, nice job!!! :D

Where are the files to customize the syntax highlightning?
How can i integrate win32 help file?
How can i make the debugger watches show hex instead of octal values?
This is useful if you want to debug data streams (I'm currently working on a CD/DVD copying tool)?

Cheers
Tom

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: " Syntax highlighting support moved to files"
« Reply #1 on: July 26, 2005, 09:19:08 am »
Where are the files to customize the syntax highlightning?

In share/CodeBlocks/lexers.
Take a look at the existing ones to see how it's done.
A quickly-written topic that describes the procedure roughly is here.

How can i integrate win32 help file?

You need the help plugin which is not in the distribution. Ceniza is the maintainer and he provides binaries for that every once in a while.
When the code is stable and usable, we 'll provide it too in the downloads page.

How can i make the debugger watches show hex instead of octal values?
This is useful if you want to debug data streams (I'm currently working on a CD/DVD copying tool)?
It's not implemented yet, sorry.

Yiannis.
Be patient!
This bug will be fixed soon...

Offline tom0769

  • Multiple posting newcomer
  • *
  • Posts: 42
Re: " Syntax highlighting support moved to files"
« Reply #2 on: July 26, 2005, 01:22:53 pm »
Hi,

I tried the code formatter plugin, which has obviously improved since last release.
It works great, so that i can have my custom settings working.

Furthermore I want to add a couple (~100) of  keywords to the list.
What is the best way to do so?

I want to populate the settings made on a WinXP computer to Win2k computer.
The function "Settings-Import/export configuration doesn't seem to work?
I tried to export/import the registry key, but this works only for XP.
Do I miss something, or is this in progress?


Tom

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: " Syntax highlighting support moved to files"
« Reply #3 on: July 26, 2005, 06:56:51 pm »
Hi,

I tried the code formatter plugin, which has obviously improved since last release.
It works great, so that i can have my custom settings working.

Thank Ceniza for it ;)

Furthermore I want to add a couple (~100) of  keywords to the list.
What is the best way to do so?

What list?
If you 're talking about the language keywords, click "Edit keywords" in the editor configuration dialog.

I want to populate the settings made on a WinXP computer to Win2k computer.
The function "Settings-Import/export configuration doesn't seem to work?
I tried to export/import the registry key, but this works only for XP.
Do I miss something, or is this in progress?

Configuration importing is not implemented yet. Sorry.

Yiannis.
Be patient!
This bug will be fixed soon...

Offline kagerato

  • Multiple posting newcomer
  • *
  • Posts: 56
    • kagerato.net
Re: " Syntax highlighting support moved to files"
« Reply #4 on: July 26, 2005, 07:39:23 pm »
I want to populate the settings made on a WinXP computer to Win2k computer.
The function "Settings-Import/export configuration doesn't seem to work?
I tried to export/import the registry key, but this works only for XP.

You can export the data using regedit to a .reg file, then import it on any machine later.  The key is HKEY_CURRENT_USER\Software\Code::Blocks.  Make sure that CodeBlocks and the compiler are using the same paths on the same partition for each machine, though.

darklordsatan

  • Guest
Re: " Syntax highlighting support moved to files"
« Reply #5 on: July 26, 2005, 09:34:15 pm »
Configuration importing is not implemented yet. Sorry.

Hows the configuration implemented in Linux? IIRC its based on XML files, right? If so, why dont use that in Windows as well, so that easily a plugin for importing/exporting could be done. And thus, you could have several C::B versions without the problem of them all writing to the same keys in the registry

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: " Syntax highlighting support moved to files"
« Reply #6 on: July 26, 2005, 11:06:23 pm »
The problem is that we use wxConfig classes to store the configuration, so that means that the file configuration details are implemented in low-level.

darklordsatan

  • Guest
Re: " Syntax highlighting support moved to files"
« Reply #7 on: July 26, 2005, 11:10:59 pm »
The problem is that we use wxConfig classes to store the configuration, so that means that the file configuration details are implemented in low-level.
Ohh... Thats what I wanted to know. Too bad. I dont really like storing stuff in the registry, but if theres no alternative...

Offline troels

  • Multiple posting newcomer
  • *
  • Posts: 71
Re: " Syntax highlighting support moved to files"
« Reply #8 on: July 26, 2005, 11:35:13 pm »
I dont really like storing stuff in the registry, but if theres no alternative...

As far as I know wxFileConfig is strictly ANSI, non-Unicode, while the Registry (wxRegConfig, the wxConfig default) is Unicode. The Registry is more likely to make all people happy, including the far east people who I think needs Unicode for paths etc.

/Troels