Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search the web for pages containing certain source code? [closed]

I wanted to find the origin page of a CSS file that somebody once included in a project I'm working on. Unfortunately, the guy that included it didn't write where from it came and has only a vague memory that 'somebody' sent the source file to him.

I wanted to search the web for pages with this css rule #loginNemId .inner { ... }

but nothing showed up on a google search for #loginNemId. Same reult when searching for id="loginNemId" as part of the page's source code. For completeness sake, I also searched for an included background image "bgLoginNemId.png", but that was also unsuccessful.

I really would like to know:

  • what is the best way to search for text in HTML files source code?
  • is there a way to search for content in CSS files or blocks within the HTML?
like image 849
Jesper Rønn-Jensen Avatar asked Oct 01 '09 08:10

Jesper Rønn-Jensen


People also ask

How do I view a hidden source code?

To view only the source code, press Ctrl + U on your computer's keyboard. Right-click a blank part of the web page and select View source from the pop-up menu that appears.

How do you look at the source code of a website on Chromebook?

View Source Code in Chrome Navigate to the web page you would like to examine. Right-click the page and look at the menu that appears. From that menu, click View page source. The source code for that page will now appear as a new tab in the browser.

How do I view source code in Chrome?

Chrome: Navigate to “View,” click on “Developer,” and then “View Source.” You also can right-click and select “View Page Source.” The keyboard shortcut is Option+Command+U.

How do I get Google source code?

To view the HTML of your webpage (also known as the "source code"), first open your web browser. Then, visit the premium content page where you'd like to show surveys. on the browser toolbar. Select More tools, then View Source.


1 Answers

To sum up the other answers, it seems there is currently no way to search for text in HTML source code.

There is one exception ot this rule: if the code you search for is open-source and indexed by Google Code Search.

like image 114
Jesper Rønn-Jensen Avatar answered Oct 13 '22 20:10

Jesper Rønn-Jensen