Good day.

Recently, I had to learn Notepad ++. I’m far from being a master in this business and I would appreciate it if someone could intelligibly explain the essence of the problem.

There is text in Notepad ++. It has a line with the text M03 after it you need to create a new line with the text G4 P1000 . You need to do it once 200 - 300 commercials. I did this procedure manually. Time takes just a bunch. Tell me how you can do it easier. Maybe not even in NPP.

I would be very grateful.

This is how it is at the beginning:
This is how it is at the beginning.

But what should happen: But what should happen

It is important that this should be done in separate lines.

  • In the sublime tags, in the node ++ header, in the notepad screenshots. Don't be like that ( - Moonvvell
  • In the SublimeText3 editor it is very convenient to work with the multi-select. Your task is solved by selecting M03, then cmd + ctrl + G, selecting all entries (Makovsky shortcut has an equivalent in win), right arrow to reset selections on the input carriages after all occurrences of M03, then enter and enter G4 P1000 - Malov Vladimir

2 answers 2

For Windows' string translations - so. For others - the same.

  • Thank you very much!) The end of my torment. I really appreciate your advice) - Sasha Kovalsky
  • @SashaKovalsky, in this case, you should accept the answer by clicking on the check mark to the left of it. - Qwertiy

Use найти и заменить . Press ctrl+f -> select the заменить tab. Then specify to find - M03 , specify - advanced and replace with - to M03\nG4 P1000 :

enter image description here

  • In NPP \n it does not work that way, unlike sublime. - Qwertiy
  • I checked before writing. I have changed as needed. - spectre_it
  • Depends on the file: i.stack.imgur.com/scEJX.png - Qwertiy