morbac / xmltools

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

Set XML type automatically won't work on paste #183

Open Kyogre opened 1 year ago

Kyogre commented 1 year ago

notepad++ version: 8.4.7 x64 (clean) XML tools version: 3.1.1.13

In https://github.com/morbac/xmltools/issues/120#issuecomment-942993955, https://github.com/morbac/xmltools/issues/130#issuecomment-1008270916 was said that XML tools automatically set language as XML after <?xml tag found. But now I can't see such behavior when I paste my xml into npp window, language (syntax) remains as normal text.

Example xml from my screenshot:

<?xml version="1.0" encoding="UTF-8"?>
<tns6:ExecutionDocumentsRequest xmlns:tns6="urn://x-artifacts-fssp-ru/mvv/smev3/execution-documents/1.1.1" xmlns:tns2="urn://x-artifacts-fssp-ru/mvv/smev3/container/1.1.0" xmlns:tns4="urn://x-artifacts-fssp-ru/mvv/smev3/attachments/1.1.0">
    <tns2:ID>11003395686</tns2:ID>
    <tns2:Date>2021-08-05T17:28:27</tns2:Date>
    <tns2:SenderID>500202</tns2:SenderID>
    <tns2:SenderDepartmentCode>aaa</tns2:SenderDepartmentCode>
    <tns2:ReceiverID>aaaa01</tns2:ReceiverID>
    <tns2:ReceiverDepartmentCode>77006</tns2:ReceiverDepartmentCode>
</tns6:ExecutionDocumentsRequest>

But if I paste only <?xml (yeah, with space after) language changes to XML successfully automatically.