i have a text document with several lines. Each line ends at different column. I want to add spaces at the end of a each line in notepad++ upto fixed column. How can i do it in notepad++.
I have only a very ugly solution with notepad++ without any additional Plugin, but using it once maybe ok. Say you want to expand to a linelength of 80 chars, thus we need to expand each line shorter than 79. We will do several regular expression find/replaces (replace all affected lines in the whole file at once) until all lines have the desired length (i.e. if there is one empty line in the file, to expand it to 80 spaces we have to do 80 Replaces!). Here are the details:
Open the replace Dialog:
(^.{0,79})$\1 (there is a space after the 1!)See the screenshot: 
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With