How does github identify the source language for syntax highlighting purposes?  Does it use only the file extension, or is there a way to force a particular language?

I have some C++ source files in a github repo, which have an extension of ".C".  How can I cause github to apply C++ syntax highlighting to these files?