Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 734
user310291 Avatar asked Feb 01 '14 14:02

user310291


People also ask

How do I enable syntax highlighting in Visual Studio?

press CTRL + K then press M.

Does Visual Studio have syntax highlighting?

Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.

How do I add a new file extension in Visual Studio?

A Visual Studio extension for easily adding new files to any project. Simply hit Shift+F2 to create an empty file in the selected folder or in the same folder as the selected file.


1 Answers

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++)

like image 131
Darien Pardinas Avatar answered Oct 16 '22 11:10

Darien Pardinas