How to write macro for Notepad++?

2019-01-10 20:28发布

I would like to write a macro for Notepad++ which should replace char1, char2, char3 with char4, char5, char6, respectively. Thanks

8条回答
Ridiculous、
2楼-- · 2019-01-10 21:22

I found 'Python Script' plugin for Notepad++ more useful since with the plugin, I could write simple macros in the form of python and It has also got very good documentation and sample macros written in python as well. If you are quite comfortable with python, then I think 'Python Script' will provide justice. For more information, refer : http://npppythonscript.sourceforge.net/

查看更多
Viruses.
3楼-- · 2019-01-10 21:27

I just did this in v5.9.1. Just go to the Macro Menu, click "Start Recording", perform your 3 replace all commands, then stop recording. You can then select "Save Current Recorded Macro", and play it back as often as you like, and it will perform the replaces as you expect.

查看更多
登录 后发表回答