Creating Your First Macro with EmEditor: Tips and Tricks for Text Editing Automation

Creating Your First Macro with EmEditor: Tips and Tricks for Text Editing Automation

Charles Lv8

Creating Your First Macro with EmEditor: Tips and Tricks for Text Editing Automation

May 13, 2008 at 9:00 pm #5775

prashob12

Member

Thanks a lot for replying

I tried what u told, but the number of Empty elements present in the is many, so if i use the replacment option it deletes one instance at a time, and the number of files with such instances are also many, so it will be time consuming.

I created a macro to replace all empty elements in at one go:

document.selection.Find(“”,eeFindNext | eeFindReplaceRegExp);
document.selection.CharLeft(false,1);
editor.ExecuteCommandByID(4153);
document.selection.Find(“”,eeFindNext | eeFindReplaceRegExp);
document.selection.Replace(“(]+>){1,20}”,””,eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace(“”,””,eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
document.selection.CharRight(false,1);

But i dont know how to make it run on all the files.
There are 1000’s of such files.

Thanks in Advance!!

Also read:

https://techidaily.com
  • Title: Creating Your First Macro with EmEditor: Tips and Tricks for Text Editing Automation
  • Author: Charles
  • Created at : 2024-10-07 03:14:43
  • Updated at : 2024-10-13 23:10:39
  • Link: https://win-info.techidaily.com/creating-your-first-macro-with-emeditor-tips-and-tricks-for-text-editing-automation/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Creating Your First Macro with EmEditor: Tips and Tricks for Text Editing Automation