I think that means you are copying more than one line to the clipboard, or including the carriage return/line feed at the end of the line in the copied text. I can't really say without knowing what the text is and what you are selecting from the menu.
What I do in this instance is copy the text to the find buffer (select the text, press ctrl-F), and do a find. Then I position the cursor in the file before the first instance of the text (e.g., the top of the file). I press F3. This finds and selects the text of the first instance. I start recording a macro. I press ctrl-L (default mapping for deleting a line), then F3 to find the next instance. I stop recording.
Now I can replay the macro if the F3 found another instance. I can replay the macro multiple times, or use the "Run a macro multiple times..." menu item (or the double right arrow >> on the toolbar) and select "Run until end of file". Since this macro always deletes the current line, I always press F3 at the time of the file before running it.
Please back up your files first! No warranty is expressed or implied where deletion is involved. --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to delete all lines that contain a certain string.
When I try any of the appropriate items on the TextFX Viz menu, I get the following message:
"Search text cannot contain end of line characters"
What does that mean and how can I delete the lines I'm trying to delete?
I'm following the advice from another post in this forum, but I can't seem to get this to work.
I think that means you are copying more than one line to the clipboard, or including the carriage return/line feed at the end of the line in the copied text. I can't really say without knowing what the text is and what you are selecting from the menu.
What I do in this instance is copy the text to the find buffer (select the text, press ctrl-F), and do a find. Then I position the cursor in the file before the first instance of the text (e.g., the top of the file). I press F3. This finds and selects the text of the first instance. I start recording a macro. I press ctrl-L (default mapping for deleting a line), then F3 to find the next instance. I stop recording.
Now I can replay the macro if the F3 found another instance. I can replay the macro multiple times, or use the "Run a macro multiple times..." menu item (or the double right arrow >> on the toolbar) and select "Run until end of file". Since this macro always deletes the current line, I always press F3 at the time of the file before running it.
Please back up your files first! No warranty is expressed or implied where deletion is involved. --Joel