How to get syntax highlighting for alternate file extension for Visual Studio 2010 or 2013?

visual-studio, visual-studio-2010

Solution

Go to `Tools -> Options -> Text Editor -> File Extension` and type your alternative extension and then associate it with your editor (e.g. `Microsoft Visual C++`)

Problem

For older version of Visual Studio it was a simple tweak in registry http://codebetter.com/darrellnorton/2004/04/21/get-visual-studio-syntax-highlighting-for-alternate-file-extensions/ But for Visual Studio 2010+ the same key doesn't exist in registry so how to do it now ?

Original source