Advanced Text Editing with EmEditor: The Ultimate Free Software

Advanced Text Editing with EmEditor: The Ultimate Free Software

John Lv8

Advanced Text Editing with EmEditor: The Ultimate Free Software

October 14, 2014 at 2:59 am #19437

Mr KT

Participant

Thanks Yutaka,
so to clarify – if I have a comma separated file as follows:
_______
A1,B1,
A2,B2,
A3,B3,
etc.
________

is there a way to run a SINGLE macro so if no text is selected, it will run on the entire file & produce this (just a simple example, searching for regexp start of line ^, replace with “):
_______
“A1,B1,
“A2,B2,
“A3,B3,
etc.
_______

BUT if I am in CSV Mode (so the file is now in columns), highlight Column “B” and run the same macro, it will produce this:
_______
A1,”B1,
A2,”B2,
A3,”B3,
etc.
_______

It seems there needs to be some way for the single macro to know if text is highlighted or not, before it can run on the whole file or just selected text?
Would an additional flag that checks if text is selected first, then run the macro and it will work on that selection only, but if text isn’t selected, if will run on the whole file instead
(e.g. eeReplaceSelOnly_else_eeReplaceall)?

Thank you for your efforts.

Also read:

https://techidaily.com
  • Title: Advanced Text Editing with EmEditor: The Ultimate Free Software
  • Author: John
  • Created at : 2024-10-10 16:54:10
  • Updated at : 2024-10-14 19:06:20
  • Link: https://win-tricks.techidaily.com/advanced-text-editing-with-emeditor-the-ultimate-free-software/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Advanced Text Editing with EmEditor: The Ultimate Free Software