cnwizards icon indicating copy to clipboard operation
cnwizards copied to clipboard

Different settings for different Delphi versions

Open ghost opened this issue 6 years ago • 3 comments

I had Delphi 7 installed with Classic color theme, and configured CnPack to highlight syntax. Then, I installed XE7 with default color settings, and CnPack in XE7 uses the same color settings as in 7. Settings for different Delphi versions should be different.

ghost avatar Jun 21 '18 19:06 ghost

CnWizards stores Setting Information in Registry. There's a command line switch for Delphi starting-up to make CnWizards use a different Registry Entry to Load/Save Settings. Please Refer to our Help:

Specify Registry Settings Key: If -cnregXXXX used, CnWizards will use HKEY_CURRENT_USER\Software\XXXX to load/save Settings information in Registry instead of default 'CnPack'.

Example: bds.exe -cnregMyDelphiXE

shanzhashu avatar Jun 29 '18 14:06 shanzhashu

Hi! This is not convenient to change command line each time, especially if not starting Delphi from a shortcut, or starting Delphi by double click on a project file. It would be better if it were possible to save setting once and use it in the future without specifying the command-line switch. Or use different settings for each version by default, and for those who want the same settings for different Delphi versions, there could (or not) be Import setting, which automatically searches existing settings for other versions, and offers to choice ?

migozz avatar Aug 06 '18 04:08 migozz

Why not store the settings for different versions of Delphi in different registry keys? Like Delphi does. HKEY_CURRENT_USER\Software\CnPack\D7\CnWizards\CnSourceHighlight. Very important. Why has it been three years and no one has paid attention to this?

migozz avatar Mar 08 '21 15:03 migozz