I have a non-standard request. I would like to do two types of thing from within NPP:
(1) Append several hundred spaces to the EOL of each line;
(2) Use a printf(…)-like command to pad the left or right side of each line with as many spaces as needed to bring all lines to the same specified width.
Because of the large number of spaces I would like to append to the EOL, a simple regex replace with manual insertion of spaces doesn't seem workable. What options are available to me?
Eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a non-standard request. I would like to do two types of thing from within NPP:
(1) Append several hundred spaces to the EOL of each line;
(2) Use a printf(…)-like command to pad the left or right side of each line with as many spaces as needed to bring all lines to the same specified width.
Because of the large number of spaces I would like to append to the EOL, a simple regex replace with manual insertion of spaces doesn't seem workable. What options are available to me?
Eric
Here's an AWK one-liner that does what you're asking: