Groups | Blog | Home
all groups > dotnet general > june 2003 >

dotnet general : Syntax coloring in Visual C++ 7.0


Larry Werner
6/30/2003 3:17:10 PM
We have source files with extension ".pc", which we would
like to be treated by the text editor as if they
are ".cpp" files for the purpose of syntax coloring. In
Visual C++ 6.0 we could do that with the Source File
Properties dialog, available via a right-mouse click on
the text editor when it was editing a file, which has a
Language dropdown edit box. But in Visual C++ 7.0
(Microsoft Development Environment 2002 Version 7.0.9466
and Microsoft .NET Framework 1.0 Version 1.0.3705 with
service pack 2 loaded) I can not find any way to achieve
the same effect. Does anyone know how turn on this
capability in Visual C++ 7.0 ?

Thanks in advance,

Michael Giagnocavo [MVP]
7/1/2003 10:46:36 PM
Not sure about VC++, but C# allows you to right click a file then
select "Open With..." -- it might work.
-mike
MVP

[quoted text, click to view]

timhuang NO[at]SPAM online.microsoft.com
7/6/2003 2:13:18 PM
Hi Larry,

Please go to registry and add:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\Languages\File
Extensions\.pc
(Default) = {B2F072B0-ABC1-11D0-9D62-00C04FD9DFD9}

You¡¯ll find any file with extension .pc have c/c++ syntax highlight.

Hope this helps.

Regards,
HuangTM
This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button