471,086 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

Syntax coloring in Visual C++ 7.0

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
Jul 19 '05 #1
2 3209
Not sure about VC++, but C# allows you to right click a file then
select "Open With..." -- it might work.
-mike
MVP

"Larry Werner" <la**********@medimpact.com> wrote in message
news:03****************************@phx.gbl...
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

Jul 19 '05 #2
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.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Ruthless | last post: by
11 posts views Thread by Xah Lee | last post: by
2 posts views Thread by Larry Werner | last post: by
reply views Thread by Markk | last post: by
2 posts views Thread by Dan | last post: by
3 posts views Thread by Nicolas | last post: by
7 posts views Thread by braver | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.