Community
    • Login

    Not sycning with modifications made in browser

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 3 Posters 1.7k 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.
    • Quelqu2Q
      Quelqu2
      last edited by

      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

      Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Quelqu2
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • PeterJonesP
          PeterJones @Quelqu2
          last edited by PeterJones

          @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”)

          Quelqu2Q 1 Reply Last reply Reply Quote 1
          • Quelqu2Q
            Quelqu2 @PeterJones
            last edited by Quelqu2

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

            Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
            • Alan KilbornA
              Alan Kilborn @Quelqu2
              last edited by Alan Kilborn

              @quelqu2

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

              Quelqu2Q 1 Reply Last reply Reply Quote 0
              • Quelqu2Q
                Quelqu2 @Alan Kilborn
                last edited by

                @alan-kilborn v.8.1.5

                1 Reply Last reply Reply Quote 0
                • PeterJonesP
                  PeterJones @Quelqu2
                  last edited by PeterJones

                  @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

                  Quelqu2Q 1 Reply Last reply Reply Quote 2
                  • Quelqu2Q
                    Quelqu2 @PeterJones
                    last edited by

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

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