In VS 2005, go to Tools – Options – Text Editor – File Extension page.
This blog post has moved to http://saraford.net/2005/05/11/did-you-know-how-to-use-file-extension-mapping-to-get-syntax-highlighting-of-a-file-extension/