Folding Keywords Wish

Working on new editor enhancements?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Folding Keywords Wish

Post 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.....
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: Folding Keywords Wish

Post by UserOfPure »

Flype wrote:each time i install purebasic i have to enter them
Don't you backup your Prefs file before reinstalling PureBasic?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post 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.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Post 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. ;)
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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.
quidquid Latine dictum sit altum videtur
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post 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. 8)

For the Import/Export i know about it, but for such things i'm a bit lazy :oops:

Finally it's OK, thank you for answer Freak, nice to you.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply