How do I search the Internet for pages containing specific source code?

I wanted to find the source page of a CSS file that someone once included in a project that I am working on. Unfortunately, the guy who turned it on did not write where he came from, and only had a vague memory that "someone" had sent him the source file.

I wanted to find on the Internet pages with this rule css # loginNemId.inner {...}

but nothing appeared on google search for #loginNemId . The same result when searching for id = "loginNemId" as part of the source code of the page. For completeness, I also searched for the included background image "bgLoginNemId.png" , but this was also unsuccessful.

I would like to know:

  • What is the best way to find text in the source code of HTML files?
  • Is there a way to find content in CSS files or blocks inside HTML?
+7
search open-source
source share
4 answers

To summarize the other answers, there seems to be no way to search for text in the HTML source code .

There is one exception to this rule: if the code you are looking for is open source and indexed using Google code search.

+4
source share

Have you tried http://www.google.com/codesearch ?

Unfortunately, for you, the major search engines put in a lot of effort to remove all these hubbins / html / css / javascript, because they want their search results to be based on what a regular user sees.

+2
source share

globalogiq.com/codesearch.htm

you need to log in, registration is free

+2
source share

Although Google indexes CSS files, it only does this to verify that the content on the page is not hidden for spamming purposes. It does not contain the contents of the CSS file in the search results for websites.

0
source share

All Articles