Can Visual Studio 2010 do ".inc" file syntax highlighting?

Posted by MarkMRM on Stack Overflow See other posts from Stack Overflow or by MarkMRM
Published on 2010-05-27T16:06:12Z Indexed on 2010/05/27 16:11 UTC
Read the original article Hit count: 314

Filed under:
|
|

Can Visual Studio 2010 be configured to do syntax highlighting on ".inc" files? We have numerous large projects with tons of these ".inc" files (asp files) and so changing the file extension to ".asp" is not an option. All I want Visual Studio 2010 to do is treat these ".inc" files just like ".asp" files when it comes to syntax highlighting.

I've tried "Open With..." and selected the HTML Editor, which is the ".asp" default, but that did not work. I tried about every other editor in the list and none of them worked.

I know Notepad++ (among others) can do this, but I would prefer this be done in Visual Studio 2010 - using another IDE or text editor is not the answer I'm looking for here.

Many many thanks to anyone who knows how to configure VS 2010 to do this, I've wasted soooo much time looking for a way to do this. Even registry hacks are welcome.

Thanks for any feedback you can provide!

© Stack Overflow or respective owner

Related posts about syntax

Related posts about highlighting