T
T
Tenji2022-01-09 10:38:11
Notepad++
Tenji, 2022-01-09 10:38:11

How to add a word to the beginning and end of each line in Notepad++?

There is a code
F1::
Loop
{
A
B
C
D
}

And I need to add this to the beginning and end and between them Sleep 2500
SendInput, A{Enter}
Sleep 2500
SendInput, B{Enter}
Sleep 2500
SendInput, C{Enter}
How can it be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Another One DevOps, 2022-01-09
@bsalbiev

An easy way is to select columns using the ctrl+alt keybinding. A little more complicated, but more flexible - find and replace in notepad ++ (hot key ctrl + h), turn on the advanced search mode and work with the line break character "\n", make replacements for the lines you need, or for the entire text. In your particular case, you need to replace \n with \nSendInput, A{Enter}\nSleep 2500\n

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question