473,395 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 3347
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ruthless | last post by:
hello. I've got a simple question. I've searched on google for PHP scripts coloring syntax e.g. asm, c, c++, bash etc. I've only found some CGI, apps, modules for Apache - but i can't use...
11
by: Xah Lee | last post by:
in some online documentations, for examples: http://perldoc.perl.org/perlref.html http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-17.html http://www.haskell.org/hawiki/HaskellDemo ...
2
by: Larry Werner | last post by:
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...
0
by: Markk | last post by:
Hi. I would like to ask If somebody don't have any small sample to coloring XML syntax, e.g. in RichTextBox. It can be in VB.NET or C#. I watched on SharpDevelop, but I could not understand...
2
by: Dan | last post by:
I'd like to show some XML text into an (editable) text box with some syntax coloring for tags, attributes etc. I don't need a full-blown commercial control, I'd just like to do some coloring on...
3
by: Nicolas | last post by:
Hi, I'm trying to import the syntax coloring settings I set on another installation of Visual Studio .NET, but I can't find any configuration file or option to achieve this. How can this be done...
2
by: Joachim Krumnow | last post by:
Hi, I'm developing code using Oracles embedded sql in .pc-files. These files are pre-processed by the proc-tool, which generates a .cpp-file. Here are my problems - Syntax coloring - how can...
7
by: braver | last post by:
Greetings -- as a long time user of both Python and Ruby interpreters, I got used to the latter's syntax-coloring gem, wirble, which colorizes Ruby syntax on the fly. Is there anything similar for...
3
by: sandromani | last post by:
Hi all, I am writing a webbased notepad and want to include syntax-coloring. The approach I have used is to set the font color and background color of the textarea to transparent, and place the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.