Community
    • Login

    Documentation suggestion: reload XML autocomplete file after editing

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 263 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • David ShakedD
      David Shaked
      last edited by

      Is this the right place to report Notepad++ bugs or enhancement suggestions?

      I am customizing the XML autocomplete configuration file, Notepad++\autoCompletion\xml.xml. I am running NPP 7.9 32-bit on Windows 10. I discovered the following undocumented behavior.

      After I edited and saved xml.xml, my customizations had no effect. I continued to see autocomplete suggestions that I had deleted from xml.xml, and I did not see my new autocomplete suggestions.

      The customizations took effect when I temporarily changed the Language setting of another file from XML to HTML, and then immediately back to XML. The customizations now work as expected. I presume that changing the Language setting caused NPP to reload xml.xml.

      I reproduced the behavior several times.

      For comparison, I tried customizing the HTML autocomplete file, html.xml. My customizations took effect immediately. I did not have to reload.

      Maybe the above tip should be added to the autocomplete documentation page (https://npp-user-manual.org/docs/auto-completion)?

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP
        PeterJones @David Shaked
        last edited by PeterJones

        @David-Shaked ,

        If there were truly a bug, then it wouldn’t go here for the official reporting and tracking; there is a FAQ which explains where bug reports go if you want them officially noticed and tracked.

        However, it is best to come here and confirm first, which is what you did, so ++@David-Shaked

        In this case, it’s not a bug, at least from the way I understood your description.

        When you edit any Notepad++ config file (including the autocompletion files), there is a sequence defined in the user manual (https://npp-user-manual.org/docs/config-files/#editing-configuration-files) as the only reliable sequence to get the changes to take effect. If you follow any other sequence, you might get surprising results, or your changes might get overwritten.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors