Go to bug ID
Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the Register tab at the top. If you are already registered, you can login at the Login tab.
Syndicate Syndicate Listing Display Search Login/Register
Bug Id ?
Reporter ?
Product/Version ?
Crimson Editor / Version 3.72 (beta, prior to r241)
Status ?
Severity ?
Duplicate Of ?
- none -
Summary ?
Customizing the syntax menu is not kept across sessions
Report Time ?
July 4, 2007 02:33:20 PM
Assignment ?
Resolution ?
Priority ?
Dependencies ?
- none -

syntaxFix.patch Fix for syntaxes
For: 0 (0%)
Against: 0 (0%)
Total: 0

July 4, 2007 02:33:20 PM Guest
When I customize the syntax menu adding more languages (and also deleting some that I do not want) and then close the editor, when I open it again my changes are lost.

July 4, 2007 02:57:25 PM Pvt_Ryan

July 16, 2007 01:28:27 PM Ankit Singla
I don't know what file these are supposed to be kept in. We should try looking and seeing if it's not being saved correctly, it's not being read correctly, or both.

July 16, 2007 01:41:12 PM Pvt_Ryan
it should be saved to the ini file..

Ill run it tonight if i get a chance

July 18, 2007 12:35:04 AM Phil
Yea, they are in the ini file, it's probably a simple fix because I changed a lot of settings and didn't test each one. I probably accidently overwrote the settings with defaults on save or something like that.

July 23, 2007 07:38:11 PM Pvt_Ryan
Actually i dont think saving is the problem..

it seems to save ok..

I think what happens is:
Add new syntax.. (gets saved to ini.)
close CE
Open CE
Loads syntax (does not "see" new syntax) so inserts blank in prefs
Saves blank overwriting new syntax in ini..

July 23, 2007 08:01:14 PM Pvt_Ryan
in cedtAppConf.cpp
nFound = szSyntaxType.Find('|');
if( nFound < 0 ) {
break; // hit an invalid entry. quit trying
nfound is returning -1 and triggering the break..

Its the buffer in GetStringSetting() @ cedtSettings is staying empty...

July 25, 2007 06:13:10 PM Pvt_Ryan
Hopefully that should be the syntax problem sorted

July 25, 2007 06:17:37 PM Pvt_Ryan
Can someone please confirm issue is resolved?

July 25, 2007 08:22:06 PM pn8830
Tools->Preferences->File->Syntax Types.
Add/remove changes remain after restart.
Tested OK.