Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Style Configurations Not Applied When Dragging Files to Another Instance #5589
Description of the Issue
The style configuration for code is not being applied when drag/dropping subsequent files to a new window.
Steps to Reproduce the Issue
Code should be highlighted for any file when moving to new view.
Beyond the first file, any subsequent file will not have a code style markup applied.
Notepad++ v7.6.6 (64-bit)
Just a note on "nomenclature": This issue is meaning "another instance of Notepad++" even though the terminology used is all over the place:
"...moving to another view"
This is not merely pedantic: the concept of a "view" in Notepad++ is something different than another "instance".
verified issue: tab to tab drag and drop, from one open notepad++ multi-instance window to another, breaks code highlighting on 7.6.6 x86 and x64.
the dragged and dropped config.xml is now shown as normal text at window 2.
you are correct, thanks and my apologies.
i've re-checked now on w7 and w10 with clean test instances:
Notepad++ v7.6.3 (32-bit)
So what is really happening here is that the file that doesn't have the coloring is being loaded as type "Normal text file" for some reason. If you then go to the Language menu and select XML, then all is good (it gets colored and has a correct filetype on the status bar).
I noticed the same thing will happen if you use a right-click Explorer extension to send an XML file to a single instance of Notepad++. It doesn't have to be Notepad++'s right-click association. Note however that if you simply drag-n-drop from Explorer to N++, it works just fine. (Not sure if that is or should be a separate "issue").