morbac / xmltools

XML Tools plugin for Notepad++
GNU General Public License v3.0
260 stars 57 forks source link

Pretty Print with read-only files #80

Closed I-Vladimir closed 3 years ago

I-Vladimir commented 3 years ago

As a question/suggestion can RO file attribute removed to format XML? When I open XML attachment from outlook it is RO. Have to clear RO attribute to format.

morbac commented 3 years ago

This is not an xml issue. NPP fully locks edition on files it cannot write into.

I-Vladimir commented 3 years ago

NPP has a command to clear RO. Can it be sent prior to XML formatting?

LetMeSleepAlready commented 3 years ago

Confirmed morbac's conclusion. RO file can not be edited. Even when ignoring RO, and pushing new text to the editor, it will simply be ignored.

I do not think auto-changing RO is a good idea, it might fail (access rights), or result in other negative side effects somewhere in certain situations.

If you know you can undo RO, then just use that? (I only just found that feature now, handy! thanks for that :)