The first one I have disabled in the "Configuration->Preferences->Edit" section.
The second one, there's no option to change the class in the Preferences dialog box in TextPad.
As I stated above, the "View->Document Preferences->Document" tab shows class "B09" when I open the file. If I switch focus to another document in the workspace and then switch focus back, the "View->Document Preferences->Document" tab has changed from "B09" to "Custom", and all I did was switch focus to a different document in the workspace.
filename extensions in the document classes
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: filename extensions in the document classes
I have made a discovery. I have 3 .B09 documents open in my workspace, SOKOBAN.B09, Undo.B09 and Program Variables.B09. For SOKOBAN.B09 and Program Variables.B09 I have already looked at the preferences dialog and both show class "Custom". Undo.B09 I had not looked at. I selected it and opened the preferences dialog, and it showed class "B09". I closed the dialog, selected Program Variables.B09, then re-selected Undo.B09 and opened the preferences dialog again. The dialog now shows class "Custom".
Apparently, the steps to reproduce what I am seeing are to 1) open the preferences dialog of the current document, then 2) close the dialog, then 3) select another document, then 4) re-select the previous document and 5) open the preferences dialog again. The second document selected does not have to be a B09 file.
Also, I have noticed that once the document class displayed is "Custom", closing and reopening the workspace file does not change them back to "B09".
You have to literally close and reopen each document, but as soon as you look at the document preferences again the class will change from "B09" to "Custom", all without making any changes to the document.
Apparently, the steps to reproduce what I am seeing are to 1) open the preferences dialog of the current document, then 2) close the dialog, then 3) select another document, then 4) re-select the previous document and 5) open the preferences dialog again. The second document selected does not have to be a B09 file.
Also, I have noticed that once the document class displayed is "Custom", closing and reopening the workspace file does not change them back to "B09".
You have to literally close and reopen each document, but as soon as you look at the document preferences again the class will change from "B09" to "Custom", all without making any changes to the document.
Re: filename extensions in the document classes
I can reproduce this, but the custom document class is a clone of its original document class, so does not change the document's encoding. Are you still seeing that problem?
Note that custom document classes are stored in the workspace file, so that's why they aren't reset when you reopen a workspace.
Note that custom document classes are stored in the workspace file, so that's why they aren't reset when you reopen a workspace.
Re: filename extensions in the document classes
No, the encoding issue was resolved. Closing and re-opening the file corrected that issue (still don't understand why it didn't work before, but I digress). As far as the "Custom" class goes, I don't understand why it has to do that when "B09" is the document class the document is assigned to. The document class is "B09" and includes all files with the "*.B09" extension. So why does it have to say "Custom"?
Re: filename extensions in the document classes
That's a bug which will be fixed in the next release. Thanks for your persistence in revealing it.