Bad Servers

How to search the source code of web pages, instead of just the textual content?

Since every search engine indexes all of the source code, and then parses out the textual content for users to search upon; I would think it should be trivial to extend the search function to include the entire source code. My question is: is there any way to search through the source of all the HTML pages a search engine indexes (preferably Google) ?

Public Comments

  1. No, unless you ARE the search engine! SE call upon websites (automatically). What they get is the HTML part, NOT the sources. It is from these texts that they extract information they put in their database. In other words: they do not read the Php (ASP, JSP etc) sources, but only their outputs. The NON-HTML sources of any website is NOT accessible to anyone (otherwise, the web would probably collapse within hours)
Powered by Yahoo! Answers