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.2k 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.
    • Sarla ScherlisS
      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
        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
          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors