Page 1 of 1
Folding Keywords Wish
Posted: Thu May 22, 2008 1:53 pm
by Flype
Hi Freak,
Could it be possible to add an option in the "Preferences -> Editor -> Folding" to add all the possible folds keywords because each time i install purebasic i have to enter them. By default, not all the keywords are defined.
Code: Select all
CompilerIf
CompilerSelect
DataSection
Enumeration
Import
Interface
Macro
Procedure
ProcedureC
ProcedureCDLL
ProcedureDLL
Select
Structure
StructureUnion
just a suggestion.....
Re: Folding Keywords Wish
Posted: Thu May 22, 2008 2:02 pm
by UserOfPure
Flype wrote:each time i install purebasic i have to enter them
Don't you backup your Prefs file before reinstalling PureBasic?
Posted: Thu May 22, 2008 2:17 pm
by Flype
i've tons of backup. but, i prefer to not use an old preference file with a new release because of possible incompatibility, especially while testing beta.
Posted: Thu May 22, 2008 2:24 pm
by UserOfPure
You can just copy-and-paste the relevant prefs section though.
Still, keyword coloring can be loaded from a file, so I guess keyword folding should too, for consistency.

Posted: Thu May 22, 2008 2:40 pm
by freak
Several options:
- Preferences are backward compatible, a newer IDE should always work with an older prefs file (not the other way around though!) This is also true for betas.
- Use the Import/Export option in the preferences to export your folding list.
- The preferences support Drag&Drop now, so save your folding list in a textfile, then simply select the text and drag it to the Folding list in the preferences window.
Posted: Thu May 22, 2008 3:10 pm
by Flype
I didn't know about drag'n'drop on the preference panel.
Very good point, so that i can drag a keyword directly from the current code source.
For the Import/Export i know about it, but for such things i'm a bit lazy
Finally it's OK, thank you for answer Freak, nice to you.