• Login
Community
  • Login

Not sycning with modifications made in browser

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 3 Posters 1.8k 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.
  • Q
    Quelqu2
    last edited by Jan 26, 2022, 5:43 PM

    I’m an old npp user, and when I used to use it, when you opened a web project on a browser (I’m using firefox) and made some change in it, it asked you if you wanted to sycn your changes made in browser. Now it’s not doing it anymore; is it an option I haven’t found, or does it link with the fact that I’m only “viewing my file” in browser and not executing it? If so, then how do I really execute my file with firefox?

    Thanks in advance

    A P 2 Replies Last reply Jan 26, 2022, 6:05 PM Reply Quote 0
    • A
      Alan Kilborn @Quelqu2
      last edited by Jan 26, 2022, 6:05 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • P
        PeterJones @Quelqu2
        last edited by PeterJones Jan 26, 2022, 6:10 PM Jan 26, 2022, 6:08 PM

        @quelqu2 ,

        I don’t remember ever seeing a “do you want to sync your changes” in the browser or in Notepad++… I am not sure how that would have worked either way.

        If you have c:\path\to\my.html being edited in Notepad++, and you have file://c/path/to/my.html open in firefox for viewing, if you save changes in Notepad++, then all you have to do is do an F5/Refresh in firefox, and the updated HTML will be read by your browser. If that’s not the situation you have, you will have to describe it better.

        (Also, for most definitions of “execute”, HTML does not execute. If you have javascript in your HTML, that will execute in the browser. And some browsers have started refusing – or at least making it harder – to execute javascript opened as a file:// URL, for your “protection”)

        Q 1 Reply Last reply Jan 26, 2022, 6:23 PM Reply Quote 1
        • Q
          Quelqu2 @PeterJones
          last edited by Quelqu2 Jan 26, 2022, 6:25 PM Jan 26, 2022, 6:23 PM

          @peterjones that’s the reverse problem I have, I’ll explain better:

          I widely prefer to modifiy my CSS in broswer using the “inspect element” thing, as it’s easier to directly see every changes. But before, when I did that and then get back to npp, I was able to sync these changes.
          In short, when I modified a file in browser, npp was asking me if I wanted these changes in my file. It prevented me from having to repeat every changes when I was satisfied with a result.

          It’s not doing it anymore, but with your answer I’m wondering if it has ever been the case… I’m sure I haven’t invented it, as it was pointed you by one of my teacher and we used it a lot in classes.

          A P 2 Replies Last reply Jan 26, 2022, 6:25 PM Reply Quote 0
          • A
            Alan Kilborn @Quelqu2
            last edited by Alan Kilborn Jan 26, 2022, 6:25 PM Jan 26, 2022, 6:25 PM

            @quelqu2

            Version of N++ you are using?
            Debug Info is best, see ? menu.

            Q 1 Reply Last reply Jan 26, 2022, 6:26 PM Reply Quote 0
            • Q
              Quelqu2 @Alan Kilborn
              last edited by Jan 26, 2022, 6:26 PM

              @alan-kilborn v.8.1.5

              1 Reply Last reply Reply Quote 0
              • P
                PeterJones @Quelqu2
                last edited by PeterJones Jan 26, 2022, 6:29 PM Jan 26, 2022, 6:27 PM

                @quelqu2 ,

                Sorry, I didn’t know that browsers would edit CSS files for you.

                Notepad++ can watch for changes to files, and ask you to reload. See the Settings > Preferences > MISC which has a section for setting the preferences about File Status Auto-detection – it can choose to not look for the file to change (“Disable”) or enable it for either the current file or for all files; you can also choose whether it silently reloads in Notepad++, or asks your permission every time.

                addendum: sometimes even when enabled, that file-status check can take a minute or so before it prompts you… I think notepad++ is just watching the last-modified-time of the file, which only has 1minute accuracy

                Q 1 Reply Last reply Jan 26, 2022, 6:36 PM Reply Quote 2
                • Q
                  Quelqu2 @PeterJones
                  last edited by Jan 26, 2022, 6:36 PM

                  @peterjones I’ve just check, it was disabled, now it works just well, thanks!

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