Syntax coloring in Visual C++ 7.0

L

Larry Werner

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,

Larry Werner
 
M

Michael Giagnocavo [MVP]

Not sure about VC++, but C# allows you to right click a file then
select "Open With..." -- it might work.
-mike
MVP
 
T

Tian Min Huang

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top