- Offizieller Beitrag
Mit diesem kleinen Tool lassen sich per Hotkey alle Regionen im Skript aus-/einklappen. Die anderen Faltungen in Funktionen etc. sind davon nicht betroffen.
Einfach in eurer SciTEUser.properties bei einer freien Nummer eintragen:
Code
# 23 Un/Fold #Region
command.name.23.$(au3)=Toggle Fold #Region
command.23.*.au3=dostring local text = editor:GetText() tReg = {} pos, iEnd = text:find('#[Rr][Ee][Gg][Ii][Oo][Nn]') \
if pos ~= nil then table.insert(tReg, pos) while true do \
pos, iEnd = text:find('#[Rr][Ee][Gg][Ii][Oo][Nn]', iEnd) \
if pos == nil then break end table.insert(tReg, pos) end \
for i=1, #tReg do editor:GotoPos(tReg[i]) editor.CurrentPos = tReg[i] \
scite.MenuCommand(IDM_EXPAND) end end
command.mode.23.*=subsystem:lua
command.shortcut.23.*.au3=Ctrl+Alt+R