Google Code Sitemap using XML Sitemaps Generator

Google code sitemaps are for websites that feature source code files. Use our XML Sitemaps Generator to make code sitemaps for Google Code Search.
Help: overview | previous | next

 To see all the options available, you will have to switch off easy mode 

 With options that use a dropdown list, any [+] or [-] button next to adds or removes items in the list itself 

Create Google Code Sitemaps and XML Sitemaps

Google searches source code files on the internet. This functionality is called Google Code Search. If you are a webmaster that owns a website featuring source code files, you should create code sitemaps to help Google index your code. Code sitemaps look like normal XML sitemaps, but have some extra xml sitemap tags and requirements. If you do not know how to make normal XML sitemaps, check our xml sitemap generator tutorial.

Creating the Code Sitemap

Building code sitemaps for search engines such as Google is similar to the process for generating normal XML sitemaps

Note: Depending on the website and its usage of file extensions, it may not always be possible to generate code sitemaps.

When making code sitemaps, you have to ensure all relevant code file file extensions are included. You may also need to tighten which file name patterns are accepted as code files. Both can be done in sitemap generator output filters. The list of programming annd markup languages supported by Google Code Search and our code sitemap generator include: c++, c, c#, pascal, java, ruby, python, lisp, smalltalk, sml, eiffel, fortran, modula2, modula3, bat, applescript, lua, ada, awk, tcl, cobol, assembly, basic, sql, xml, xslt, xul, html, css, perl, php, asp, coldfusion, javascript, jsp and more as they are added.

To help configuration, A1 Sitemap Generator has a preset option that sets all options to work for most websites that host source code files.

google code sitemap options

After website crawl has finished, you can build the Google code sitemap by choosing the correct XML sitemap file kind to create:

create google code sitemap

Creating the Code Sitemap

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:c="http://www.google.com/codesearch/schemas/sitemap/1.0">
This help page is maintained by

As one of the lead developers, his hands have touched most of the code in the software from Microsys.

If you email any questions, chances are that he will be the one answering them.
A1 Sitemap GeneratorAbout A1 Sitemap Generator

Build all kinds of sitemaps including text, visual HTML / CSS, RSS, XML, image, video, news and mobile for all your websites no matter the platform they use.
Share this page with friends   LinkedIn   Twitter   Facebook   Pinterest   Google+   YouTube  
 © Copyright 1997-2017 Microsys

 Usage of this website constitutes an accept of our legal, privacy and cookies information.