Hi, @mohammad-hussain, @neil-schipper and All,
Your active shortcuts.xml file should be located, either :
In the %appData%\Notepad++ folder, for a standard installation with the installer
In the Notepad++.exe folder, for a local installation
Then :
Start Microsoft notepad.exe
Open the right Shortcuts.xml file
Insert, at the end of the <macros>...</macros> mode, the following macros Macro_A, Macro_B and Macro_C :
<Macro name="Macro_A" Ctrl="no" Alt="no" Shift="no" Key="0">
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="(?-i)(?<=\\)[^\\]+\.html?|(^P:\\|^\h*\R)" />
<Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
<Action type="3" message="1602" wParam="0" lParam="0" sParam='(?1:<file name="$0" mark="marked"/>)' />
<Action type="3" message="1702" wParam="0" lParam="768" sParam="" />
<Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />
</Macro>
<Macro name="Macro_B" Ctrl="no" Alt="no" Shift="no" Key="0">
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="(?-is)^(.+?)\\.+\R(?:(?:(?!</).)+\R)*\1\\.+\R|^(.+?)\\<file name.+\R" />
<Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
<Action type="3" message="1602" wParam="0" lParam="0" sParam='<folder name="\1\2">\r\n$0</folder>\r\n' />
<Action type="3" message="1702" wParam="0" lParam="768" sParam="" />
<Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="(?-s)^(?!<).+?\\(.+)" />
<Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
<Action type="3" message="1602" wParam="0" lParam="0" sParam="\1" />
<Action type="3" message="1702" wParam="0" lParam="768" sParam="" />
<Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />
</Macro>
<Macro name="Macro_C" Ctrl="no" Alt="no" Shift="no" Key="0">
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="^(?!<).+" />
<Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
<Action type="3" message="1702" wParam="0" lParam="768" sParam="" />
<Action type="3" message="1701" wParam="0" lParam="1614" sParam="" />
</Macro>
Save the modifications
Now, stop and restart Notepad++
Open your INPUT file
First, run, once only, the Macro_A macro
Then, run several times the Macro_B macro
From time to time, run the Macro_C macro in order to verify if the process is terminated. Note that the Find dialog must be opened to get the results !
Remark :
You may assign a shortcut to each of these macros :
Use the Macro > Modify Shortcut/Delete Macro option
Double-click on each macro and enter your preferred shortcut
Best Regards,
guy038