IDE: Load Folding and Indentation settings from file like Custom Keywords

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

IDE: Load Folding and Indentation settings from file like Custom Keywords

Post by Danilo »

In the IDE preferences we can load custom keywords from a file.

I would like to add Folding and Indentation settings for my new keywords,
but I can't load a file there.
We can load a list with custom keywords, but for folding and indentation
we have to add all entries one by one.

Would it make sense to combine all 3 into one file, so we can load
a file with new keywords + indentation settings + folding settings?

Maybe something like a comma-separated file:

Code: Select all

newKeyword1,   0, 1, StartFolding
newKeyword2,  -1, 0, EndFolding
Interface,     0, 1, StartFolding
EndInterface, -1, 0, EndFolding
Structure,     0, 1, StartFolding
EndStructure, -1, 0, EndFolding
Enum,          0, 1, StartFolding
EndEnum,      -1, 0, EndFolding
An alternative way could be using Preferences -> Import settings
with sections [Folding], [Indentation], [CustomKeywords].

Currently only [Folding] seems to be imported. But the imported [Folding] settings
are not additional, older user settings for folding are removed!
I would like to load settings for additional keywords + folding + indentation,
without removing anything from the user's settings.

Image