Page 1 of 1

How to change the default folding keys of SciteAutoHotkey?

Posted: 15 Apr 2021, 03:33
by c7aesa7r
I mean this:
image.png
image.png (4.76 KiB) Viewed 2416 times
You use ;{ ;} to fold a region of the code, i would like to ask if is possible to change this key {} to another. :think:

Re: How to change the default folding keys of SciteAutoHotkey?

Posted: 07 Nov 2022, 07:27
by mrmech
I came here to ask the same thing.

I see block.start and block.end in the ahk.properties file:

# Indentation settings (AutoHotkey v2)
statement.indent.$(file.patterns.ahk2)=6 catch else finally for if loop try while
statement.lookback.$(file.patterns.ahk2)=2
block.start.$(file.patterns.ahk2)=10 {
block.end.$(file.patterns.ahk2)=10 }


But I played around with it and I couldn't change it. The problem I'm running into is I have a trigger that makes a folding block so it uses this:

send {{}

The last bracket breaks up the larger folding block it's nested in.