Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    10 Posts 7 Posters 8.3k Views 4 Watching
    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.
    • Larsen E WhipsnadeL Offline
      Larsen E Whipsnade
      last edited by Larsen E Whipsnade

      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?

      1 Reply Last reply Reply Quote 0
      • Larsen E WhipsnadeL Offline
        Larsen E Whipsnade
        last edited by

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

        Claudia FrankC 1 Reply Last reply Reply Quote 0
        • Claudia FrankC Offline
          Claudia Frank @Larsen E Whipsnade
          last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • Andova BegarinA Offline
            Andova Begarin
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • Larsen E WhipsnadeL Offline
              Larsen E Whipsnade
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • Claudia FrankC Offline
                Claudia Frank
                last edited by

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

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • David LathropD Offline
                  David Lathrop
                  last edited by

                  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.

                  Scott SumnerS 1 Reply Last reply Reply Quote 0
                  • Scott SumnerS Offline
                    Scott Sumner @David Lathrop
                    last edited by Scott Sumner

                    @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

                    1 Reply Last reply Reply Quote 0
                    • James ShanleyJ Offline
                      James Shanley
                      last edited by

                      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.

                      1 Reply Last reply Reply Quote 1
                      • PeterJonesP Offline
                        PeterJones
                        last edited by

                        @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.

                        1 Reply Last reply Reply Quote 1

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors