Sign in to follow this  
Followers 0
StandardUser

Scite and code folding

7 posts in this topic

Good day,

could someone tell me, is there a way to make Scite remember structure of all folded/unfolded code blocks(including nested b;ocks)?  As you know, when loading a script, all blocks are unfolded. I just found a setting to fold all blocks on load(fold.on.open=1), but it is not really helpful when you have a complex script.

Share this post


Link to post
Share on other sites



 

If I recall then I think you want:

save.session=1
session.folds=1

 

Many thanks for a response. Unfortunatelly,  it didn't help(these two settings were already included in SciTEGlobal.properties file). Would be really grateful for any other ideas :)

Share this post


Link to post
Share on other sites

871,

You need to have those setting AND use the <File - Load/Save Session> menu items to store the folds. Get the loaded scripts folded as you want and then save the session. When you reopen SciTE, reload the session and the scripts are reloaded with the folds set just as you saved them. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites

871,

You need to have those setting AND use the <File - Load/Save Session> menu items to store the folds. Get the loaded scripts folded as you want and then save the session. When you reopen SciTE, reload the session and the scripts are reloaded with the folds set just as you saved them. ;)

M23

At last! This was a real trouble for me. I just added save.session.advanced to Scite properties to autoload last saved session. Many thanks!

Share this post


Link to post
Share on other sites

871,

Make sure you add that line to your User Options file - if you add it to Global Options it will be overwritten when you next update. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites

Understood!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0