auto insert <br> at the end of every line
I use notepad++ to write patient notes which I then copy and paste into my hospital’s electronic record. Due to ‘reasons’ I need to have <br> at the end of each line if I do not want my notes to be one amorphous blob.
Is there a way to easily inset <br> at the end of every line without manually copy pasting it?
Select Replace… from the Search menu.
and be sure Regular expression is checked in the Search Mode box; then click Replace All.
This will add a <br> after every line, even the last one, so you’ll probably want to delete the final <br>.
“Auto insertion” is a bit difficult to achieve; let’s assume that it is okay for you to type a bit of patient notes, using the Enter key to break lines as one would normally do. When you are somewhat happy with your notes, you run an extra operation to put the special line break sequences in, as @Coises mentioned.
While @Coises 's solution works, manually setting it up and doing it over and over again can get tedious. It might be better to record such an operation as a macro (REF.), which you can then either run from the Macro menu when you need it, or bind it to a keycombo for even faster and less obtrusive access.
Here’s how I might set it up (note: a bit different than @Coises), assuming that files have Windows line-endings (the typical case):
After this setup, press the Replace All button.