Is there a way to load an entire website's source code into Notepad++?
-
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?
-
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.
-
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.