multi search and replace in multi files with python
-
hello
i have found a python script to do Multiple word search and replace.
it seems to woth with python script plugin
is it possible to use it with notepad++ in many files inside directories?
how?
a great thank -
Use a python
for
loop inside the script. you would do a for loop on all the files in the directory or directories, then for each one of those files, usenotepad.open()
to open that file, then do the main contents of your existing script, thennotepad.save()
andnotepad.close()
.If you don’t know how to loop on all the files in a group of directories in Python, that’s a standard Python question which is not Notepad++-specific, so you can find help for that in standard Python documentation or help locations.
-
thanks will try to find