morbac / xmltools

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

Pretty Print does not auto change language to XML #210

Open PopeJareth opened 6 months ago

PopeJareth commented 6 months ago

When I run pretty print it seems the language should be automatically changed to xml for good block coloration. Looking at other issues reported it looks like it used to happen.

pistata112 commented 2 weeks ago

I have the same issue.

I have new "anonymous" file opened in notepad++ (without Language defined) and I copy/paste xml content to that file.

Then I run "XML Tools / Pretty print" command which prettyfy the content, but notepad++ still doesn't show it as XML file - e.g. small tags to fold/unfold xml element content are not displayed.

In "XML Tools" menu I have checked "Set XML type automatically".

When I change via notepad++ menu "Language / XML" it works well.

I expect that every "XML Tools" command fired on the content of the file should do the same automatically if I have checkst "XML Tools / Set XML type automatically", so the BUG is that it doesn't work at the momment.

Notepad++ version v8.6.8 (64 bit) XML Tools Plugin version 3.1.1.13 (unicode 64bit) XML engine MSXML