How to rename blocks of a program in notepad ++?
-
Hello everybody,
I am using the notepad ++ to modify some cnc programs, so I have inserted some new blocks in one of this programs, then I would like to know how to rename the blocks automatically, is that possible?
-
not quite sure what you are requesting, can you give as an example of
what you have and what you want to have?Cheers
Claudia -
Thank you in advance for your help.
For example, I have the following blocks of a cnc program:
N1400 G01 Z=R451+R90 F=500 ;COTA Z PISTA SUPERIOR
N1410 STOPRE
N1420 M92 ;RESET ANALOGICAS PIST NOVAand I want to introduce two new blocks (lines) and rename automatically all blocks in ascending order, for example:
N1400 G01 Z=R451+R90 F=500 ;COTA Z PISTA SUPERIOR
N1410 STOPRE
N1420 G04 F10 ; (NEW BlOCK)
N1430 STOPRE ; (NEW BLOCK)
N1440 M92 ;RESET ANALOGICAS PIST NOVA -
out of the box - this could be, better I should say I assume this could be, achieved with some heavy regular expressions but
when installing a npp scripting language plugin like python, java script, lua etc… we could find a way to automate this.Cheers
Claudia -
I thought It was easier, I thought It was already a notepad ++ resource.
Thank you again.
-
there is one other solution which maybe suits you.
With holding alt+shift you can use the arrow keys to select a block of text, alt+left mouse is the same.
Once done, pressing alt+c opens the block editor mode and there you can insert numbers with a defined stepping.Cheers
Claudia -
Short video clip may help https://youtu.be/8p4S8vsEjRo
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login