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.