Not possible to search Web for commented-out code

I just ran into a problem that really surprised me: apparently there’s no way to search the Web for commented out code on pages.

In a Web page, you can surround a bit of text with the special tags <!– and –> and any words in-between will be hidden from view. <!– That is to say, this sentence wouldn’t show up unless you viewed the HTML source of the page –>

I had never needed to search the Web for commented-out text before, but today it would be super-useful for me to be able to search for a special commented out string on a bunch of my clients’ sites. Much to my surprise, there’s apparently no way to do this! I tried the usual suspects (Google, Yahoo!, et al) and even Google Code Search¬† . No dice.

If anyone knows a trick, please leave a comment below.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s