npp doesn't "run" my code in my browser any more



  • Forgive me if I’ve overlooked how to do this, but npp in Win7 would “run” my code in my browser just by clicking “Run>Firefox”, but after upgrading to Win10, this no longer works. How do I do it?



  • FWIW, I’ve downloaded v6.9.2 and checked that it will launch IE & Chrome, but not FireFox.



  • @Larsen-E-Whipsnade

    I don’t have a win10 at the moment but I assume it should be the same as in windows 7 as long as you installed
    firefox and don’t use a portable version.

    See this thread for more information on the topic.

    Cheers
    Claudia



  • For me, only IE works (well, it launches IE but does not open what I have in NPP). Some snooping shows that, for me, Firefox and Chrome are not in the registry that NPP checks:

    RegOpenKey HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\App Paths\firefox.exe NAME NOT FOUND Desired Access: Read

    RegOpenKey HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe NAME NOT FOUND Desired Access: Read

    And NPP, it seems, not finding those then just searchs the PATH (or something):

    QueryDirectory C:\Program Files (x86)\Notepad++\firefox.* NO SUCH FILE Filter: firefox.*
    QueryDirectory C:\Windows\SysWOW64\firefox.* NO SUCH FILE Filter: firefox.*
    QueryDirectory C:\Windows\System\firefox.* NO SUCH FILE Filter: firefox.*
    QueryDirectory C:\Windows\firefox.* NO SUCH FILE Filter: firefox.*
    QueryDirectory C:\Windows\SysWOW64\firefox.* NO SUCH FILE Filter: firefox.*
    QueryDirectory C:\Windows\firefox.* NO SUCH FILE Filter: firefox.*
    CreateFile C:\Program Files (x86)\Notepad++\firefox NAME NOT FOUND
    CreateFile C:\Windows\SysWOW64\firefox NAME NOT FOUND
    CreateFile C:\Windows\System\firefox NAME NOT FOUND
    CreateFile C:\Windows\firefox NAME NOT FOUND
    CreateFile C:\Windows\SysWOW64\firefox NAME NOT FOUND

    But I did not install FF and CH by normal means, so, check if you have, and check the registry key:

    HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\App Paths\

    for Firefox.

    Maybe this will help.



  • Thanks - it helps to know that I’m not totally brain-damaged when it comes to trying to get npp to run on Windows 10!

    I’m able to get npp to “Run>IE” and display a result, but not with any other browsers emulation. So, npp works in a half-a$$ed way and I can at least get my work done. But it would be much easier if I could get it working properly with all browser choices.



  • Doesn’t this thread help
    to make it work??

    Cheers
    Claudia



  • I am having the same issue. I was successfully running NP++ in chrome last night now this morning it will not “RUN” in Chrome at all and just shows the code? Using the same exact file.



  • @David-Lathrop

    So it sounds like that when you execute the Run (menu) -> Launch in Chrome command that Windows actually switches to (or starts-up) Chrome and gives it focus. At that point, what does your Chrome address bar have in it?

    Example (in RED box) from my trial–what does YOURS say?
    Imgur



  • I had the same issue, where it would only display the code when I would run it. But when I looked at the other file I have that runs properly I found it was saved as a .html file. I saved my other file as one and it worked, so this should hopefully solve your problems.



  • @James-Shanley: Welcome to the Notepad++ Community forum. You said:

    I looked at the other file I have that runs properly I found it was saved as a .html file. I saved my other file as one and it worked

    Good detective work, @James-Shanley ; I like it when new Community members are so helpful in their first post; it’s a refreshing change from “do everything for me” posts that we often see from new members.

    There was a more-recent discussion about that in this other topic from a couple weeks ago (vs years ago for this topic), which came to the same conclusion. As a result, I opened the issue#5903 to request that more file types would allow View > View Current File In… Hopefully, that will make it into a future release.


Log in to reply