Google code search has come up with a new feature in which you can also search only in class and function names. Google Code Search helps you find function definitions and sample code by giving you one place to search publicly accessible source code hosted on the Internet. With Google Code Search, you can:
* Use regular expressions to search more precisely
* Restrict your search by language, license or filename
* View the source file with links back to the entire package and the webpage where it came from
Now there may be a case that you put up a code in Internet but don’t want Google Code Search bot to crawl your code nd make it available on the Internet. Dont Worry the procedure is simple you just have to add a file called robots.txt in the root directory with the following:
User-agent: *
Disallow: /
and this will prevent Google to search your code and make it available to general public.
Related posts:
- Google and StumbleUpon add new features to your search
- How to get back in Google Search if your site was banned
- Konami Code gets a Ninja in your Google Reader
- Google separates search channels for Apple,Linux,Microsoft & Unix
- New Google Books Search API Launched,now Embed Books Preview
Tags: code programming, code search, google, google search, internet search, programming code, public search, regular expressions, root directory, search code, source file
