Community
    • Login

    Is there a way to load an entire website's source code into Notepad++?

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 1.8k Views 1 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.
    • Sarla ScherlisS Offline
      Sarla Scherlis
      last edited by

      Hi everyone,

      I am new to Notepad++. My goal is to view an entire website’s source that I do not own and locate a piece of code on a specific page within. The website is simple HTML static site, but it has many pages, so downloading the website offline and then uploading it probably won’t work. Is there a function that would allow me to upload the website to Notepad++ by URL? Or is there another option that you could share with me?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Sarla Scherlis
        last edited by

        @Sarla-Scherlis ,

        At first when I read, I thought you were trying to edit a website remotely. For that, the NppFTP plugin allows you to remote-edit using FTP/SFTP/FTPS.

        However, on re-read of your, message, I better saw (emphasis added)

        view an entire website’s source that I do not own and locate a piece of code on a specific page within

        So no, NppFTP won’t give you access that way.

        I don’t think Notepad++ is the tool for doing the grabbing.

        If you use a utility like wget (which was designed for Linux, but has a Windows port here), you can download an entire website’s HTML via the --mirror option. After mirroring, Notepad++'s search-in-files will help you find what you want.

        There’s also httpgrep or something of a similar name (you can google it yourself) which is a different command-line tool that may or may not have a Windows version available. That can search (“grep”) for the specific code in the site.

        But in the end, the solution is going to be mostly outside of Notepad++, though you can view the results in Notepad++, of course.

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

          As a follow-on, this decade-old SO answer https://stackoverflow.com/questions/4265748/search-in-html-source-with-google gives some links to search engines that are designed to look at the HTML code, not just the text; I don’t know if any of them are still around, but it’s worth a try.

          1 Reply Last reply Reply Quote 2

          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