Are you wanting to insert some text after the selected text, instead of replacing it? If you want to do that, you can select a block of zero width. The main problem with that is that you can no longer see where the selection is, so you need to be careful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
0123456789 ... i need this -> exec:"0123456789";
The first stef is easy: ALT+C exec:" ... done
but now i need ";
select zeros is good but the numbers are not in the same format... -> 12345, 12, 12345678, 1234 ;(
I think its better to make a radio button :-) and we have a perfect column mode ;)
all i miss is the damn ftp client ;) to upload my code to server
BTW: i love np++
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So the problem is that the text you want to modify isn't always the same width in each line? Then I don't think column mode is going to help you there. I would suggest that you need to do a regex find/replace. The advanced find/replace (control+R) allows you to specify which columns to operate on.
It might be easier to understand the problem if you post a few lines of the text you're working on.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Move the cursor to the top of the file.
Press CTRL+R to use the advanced Find/Replace Dialog using the following regular expression in the Find field:
^(.+)$
Use the following expression in the Replace field:
exec:\1;
Check the Regular Expression checkbox, uncheck the Selection (NR) checkbox.
A simpler method is to use control+r, but with regex turned off. Replace control+M (newline) with ;control+M.
This method is probably easier to understand if you don't know regex, but can't be retricted to only the lines with numbers.
You could use this method to do almost the whole operation. Replace control+M with ;control+Mexec:. You'd end up with "exec: missing from the first line, and an extra one after the last line.
I feel that the task of adding some text to the beginning or ending of each line is so common that perhaps it would be useful to add this functionality as a plugin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The next thing you'll want is the functionality to do something with numbers only to be added as a plugin or so...
The regex for adding after the beginning or at the end of a line isn't difficult.
The only "problem" here is to select lines with only a number.
I don't think it's a problem at all to have to enter this regex once and do the job in one pass.
Forgetting to edit the first and last line manually is at a higher risk.
I would rather see the TextFX functions act on all lines, including the first, and not removing the "CTRL+M" from the last line.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
we have to write a batchfile with 1000 of numbers, there we need to write something befor and something behind of them.
A simple embed funktion is powerful.
String1: exec:
String2: number -> 123 (a large list if possible)
String3: ;
Output: exec:123;
:-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
i love the "new" Column Mode but is it possible to mark all and write anything behind of all marked ?
I think this need just a little radio button ;)
Please post any further message in a new thread with the right description.
This has nothing to do with Column Mode (any more).
Are you wanting to insert some text after the selected text, instead of replacing it? If you want to do that, you can select a block of zero width. The main problem with that is that you can no longer see where the selection is, so you need to be careful.
Hi ,
for example:
i have a couple of numbers > 100
0123456789 ... i need this -> exec:"0123456789";
The first stef is easy: ALT+C exec:" ... done
but now i need ";
select zeros is good but the numbers are not in the same format... -> 12345, 12, 12345678, 1234 ;(
I think its better to make a radio button :-) and we have a perfect column mode ;)
all i miss is the damn ftp client ;) to upload my code to server
BTW: i love np++
So the problem is that the text you want to modify isn't always the same width in each line? Then I don't think column mode is going to help you there. I would suggest that you need to do a regex find/replace. The advanced find/replace (control+R) allows you to specify which columns to operate on.
It might be easier to understand the problem if you post a few lines of the text you're working on.
Hi,
i love the fast answers :-)
-------
befor
123
12345
1234
12345678
in (first step, ALT + C works greate)
exec:123
exec:12345
exec:1234
exec:12345678
in (second step, i need ALT +C ++ past@End of Line)
exec:123;
exec:12345;
exec:1234;
exec:12345678;
Move the cursor to the top of the file.
Press CTRL+R to use the advanced Find/Replace Dialog using the following regular expression in the Find field:
^(.+)$
Use the following expression in the Replace field:
exec:\1;
Check the Regular Expression checkbox, uncheck the Selection (NR) checkbox.
Press Find button.
Press Replace&FindAgain button.
If you want lines with _only_ numbers to be changed you can also use
^([0-9]+)$
in the Find field.
The \1 indicates that the found word (number in this case) will also be included in the replace text.
A simpler method is to use control+r, but with regex turned off. Replace control+M (newline) with ;control+M.
This method is probably easier to understand if you don't know regex, but can't be retricted to only the lines with numbers.
You could use this method to do almost the whole operation. Replace control+M with ;control+Mexec:. You'd end up with "exec: missing from the first line, and an extra one after the last line.
See http://notepad-plus.wiki.sourceforge.net/FindReplaceNewlineHowTo for more details.
I feel that the task of adding some text to the beginning or ending of each line is so common that perhaps it would be useful to add this functionality as a plugin.
The next thing you'll want is the functionality to do something with numbers only to be added as a plugin or so...
The regex for adding after the beginning or at the end of a line isn't difficult.
The only "problem" here is to select lines with only a number.
I don't think it's a problem at all to have to enter this regex once and do the job in one pass.
Forgetting to edit the first and last line manually is at a higher risk.
I would rather see the TextFX functions act on all lines, including the first, and not removing the "CTRL+M" from the last line.
OK it works and is fast,
but it's not easy and for a big firm for any people. UE is much easyer ;) but no one want to pay it ...
I wish there is a "include this couple of numbers into this two strings"
"Regular Expression" my new word's ;)
thx
Hi there,
i need this too ....
we have to write a batchfile with 1000 of numbers, there we need to write something befor and something behind of them.
A simple embed funktion is powerful.
String1: exec:
String2: number -> 123 (a large list if possible)
String3: ;
Output: exec:123;
:-)