Или удаляет символы комментирования, если начальная строка выделенного блока закомментирована.
Code: Select all
REGEDIT4
[HKEY_CURRENT_USER\Software\far2\KeyMacros\Editor\/]
"Sequence"="$If(!Selected) $AKey $Else editor.undo(0); bm.push(); %n0=editor.sel(0,0); %n2=editor.sel(0,2); editor.sel(4); %fd=index(substr(Editor.Value,0,2),\"//\"); $While (%n0<=%n2) editor.pos(1,2,1); editor.pos(1,1,%n0); $If(%fd==-1) print(\"//\"); $Else $If(index(substr(Editor.Value,0,2),\"//\")!=-1) Del Del $End $End %n0=%n0+1; $End bm.pop(); editor.undo(1); $End"
"DisableOutput"=dword:00000001