How to Respond & Remove Text Between Markers in EmEditor - Advanced Editing Guide
How to Respond & Remove Text Between Markers in EmEditor - Advanced Editing Guide
November 14, 2006 at 7:41 pm #4006
Keymaster
You can use the following macros (JavaScript):
// Delete lines between bookmarks
bSuccess = false;
if(document.selection.NextBookmark()){
y1 = document.selection.GetActivePointY(eePosLogical);
if(document.selection.NextBookmark()){
y2 = document.selection.GetActivePointY(eePosLogical);
document.selection.SetActivePoint(eePosLogical, 1, y1, false);
document.selection.SetActivePoint(eePosLogical, 1, y2, true);
document.selection.Delete(1);
bSuccess = true;
if(!bSuccess){
alert("Cannot find bookmarks. The cursor position must be above both bookmarks before you run this macro.")
// Copy lines between bookmarks
bSuccess = false;
if(document.selection.NextBookmark()){
y1 = document.selection.GetActivePointY(eePosLogical);
if(document.selection.NextBookmark()){
y2 = document.selection.GetActivePointY(eePosLogical);
document.selection.SetActivePoint(eePosLogical, 1, y1, false);
document.selection.SetActivePoint(eePosLogical, 1, y2, true);
document.selection.Copy(eeCopyUnicode);
bSuccess = true;
if(!bSuccess){
alert("Cannot find bookmarks. The cursor position must be above both bookmarks before you run this macro.")
// Cut lines between bookmarks
bSuccess = false;
if(document.selection.NextBookmark()){
y1 = document.selection.GetActivePointY(eePosLogical);
if(document.selection.NextBookmark()){
y2 = document.selection.GetActivePointY(eePosLogical);
document.selection.SetActivePoint(eePosLogical, 1, y1, false);
document.selection.SetActivePoint(eePosLogical, 1, y2, true);
document.selection.Cut();
bSuccess = true;
if(!bSuccess){
alert("Cannot find bookmarks. The cursor position must be above both bookmarks before you run this macro.")
Also read:
- [New] In 2024, Comparing Recording OBS Studio Versus Bandicam
- [New] In 2024, Master Your FB Video Archive with #1-5 Choices
- [New] Unlock the Potential of Live Streaming Facebook via OBS Devices
- [Updated] Eye-Catching YouTube Most Followed Channels
- Easiest Guide How to Clone Xiaomi Redmi K70 Pro Phone? | Dr.fone
- Efficient Techniques for Handling Parameters in EmEditor Scripts
- Eliminating Trailing Whitespace in Your Texts Using EmEditor: A Comprehensive Guide
- EmEditor Text Editor Guide: Configuring Sticky Vertical Mode - Java Macros Tutorial
- Enhanced Text Editing with MTeX2 in EmEditor: Comprehensive Input Assistance
- Halt Digital Misappropriation of Intriguing Selfies
- New Release: EmEditor Professional Suite v14.6.0 Beta Edition – Next-Level Text Editor Experience
- New What Is AI Background Generator for 2024
- Resolving the Phantom Character Issue with EmEditor - Step-by-Step Solutions
- Storage Solutions
- Ultimate Text Editing Software: EmEditor, Your Perfect Digital Wordsmith Companion
- Unleash Powerful Text Editing Capabilities Using EmEditor's Advanced Features
- Unlocking Road Safety and Convenience at a Great Price - The Ultimate Guide to Z-Edge Z3+ Dashcam Review
- Title: How to Respond & Remove Text Between Markers in EmEditor - Advanced Editing Guide
- Author: Robert
- Created at : 2024-10-07 16:01:14
- Updated at : 2024-10-14 16:14:15
- Link: https://win-superb.techidaily.com/how-to-respond-and-remove-text-between-markers-in-emeditor-advanced-editing-guide/
- License: This work is licensed under CC BY-NC-SA 4.0.