#25966
LTT
Participant

Hello jic,

If this topic is not resolved yet, try this macro:
(Here I’m only talking about multi-line replacing, according to your macro. Actually you can use other way to achieve the result, e.g. by moving cursor and deleting the unwanted part via the macro.)

document.selection.Replace(“^”, “> “, eeReplaceAll | eeFindReplaceRegExp);
document.selection.SelectAll();
editor.ExecutePlugin(“Snippets.dll”, eePluginUserMessage, 0, “$0${SelText/[\\s\\S]* on behalf of /\\n/}”);

http://www.emeditor.org/en/history_v15_5.html
The new ExecutePlugin method allows you to call plug-in features from within macros. This allows, for example, a snippet feature temporarily even when the Snippets plug-in is not running. See “Examples to call plug-ins from macros” below (in the page).

http://www.emeditor.org/en/macro_editor_editor_executeplugin.html
http://www.emeditor.org/en/howto_plugin_plugin_snippets.html

——————————
The common way for multi-line replacing (that I know, and that you used) would be verbose. And I failed for this reason:

The line begins with ** in this page:
https://www.emeditor.com/forums/reply/25947/

The 1st ** in this page:
https://www.emeditor.com/forums/topic/advanced-search-options/