Run Notepad++ as commandline to edit and save
-
I have a folder of XML files, created without Linefeeds.
I want to run a script likeNotepad++ abc.xml XML Tools>PrettyPrint Notepad++ bcd.xml XML Tools>PrettyPrint Notepad++ cde.xml XML Tools>PrettyPrint Notepad++ def.xml XML Tools>PrettyPrint Notepad++ efg.xml XML Tools>PrettyPrintso they are all readable
Can I do this?
-
Not currently (from the command-line, anyway; see @FreeMeow’s reply, below, for an alternative).
Notepad++ has the
-pluginMessagecommand-line option, but XML Tools does not currently check that message; if the plugin author ever decided to add that feature, it would be technically feasible, but you would have to request that the plugin author implement that feature -
@Ian-Hicks

You can open all the xml files with Notepad++, check “Apply to all open files” under XML Tools, and then do PrettyPrint and it will activate for all the open files.
Afterwards your can disable it back, so you won’t accidently do it on all files needlessly. -
Thank you. You have improved the task, so it’s now just a few manual steps. A pity, as I was wanting to fully automate the extraction/processing path.
-
Dang…
You have now set me off on another problem.
While I wanted to be able to fully automate the process, I am happy to be able to do this with a “few” keystrokes.SO, I should be able to:
Notepad++ -nosession *.xml
and manually update all the files with a single action?
BUT:
Since the files are in a number of sub-folders, how do I get it to load a list of files?
It’s many more files/folders than this, but in essence:Notepad++ -nosession “abc.xml, .\folder1\bcd.xml, .\folder1\cde.xml”