EmEditor (text editor) Forum Index Macro Samples
Macro: GoTo and select... collection | Register To Post |
| Threaded | Oldest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| Stefan | Posted on: 7/28/2012 6:15 am |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 285 |
Re: Macro: GoTo and select... collection 2.) GoTo and select to line X Purpose: select the lines from start line to line number X. Where X is a line number you entered to go to. Tip; Line X can be below or above current line. 2a) EmEditor internal commands: To select an block: * set your cursor on the start of the line you want * press F8 to set "begin of block marker" * press Ctrl+G and enter the line number to go to (Tip: press ESC to leave selection mode) To select whole lines: * same as above but press Ctrl+F8 To select an rectangular/vertical block: * set your cursor on the line and column you want * press Ctrl+Shift+F8 to set "begin of block marker" * press Ctrl+G and enter the line and column number to go to (Tip: press ESC to leave selection mode) Search the help for "F8":Quote: EmEditor Help - How to - Edit 2b) If you want to use an script for that, the following code could be an start: To select an block: * set your cursor on the line you want * execute this script and enter the line number to go to To select whole lines: - start at begin of line - at the end hold Shift-key and press End-key Or add this to the end of the script: document.selection.EndOfLine(true, eeLineLogical); To select an rectangular/vertical block: - i will post next... . |
| Stefan | Posted on: 7/27/2012 6:13 am |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 285 |
Macro: GoTo and select... collection 1.) GoTo and select n lines down or up |
| Threaded | Oldest First | Previous Topic | Next Topic | Top |
| Register To Post | |


