473,700 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3374
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**********@m edimpact.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_MACH INE\SOFTWARE\Mi crosoft\VisualS tudio\7.0\Langu ages\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
2857
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 them on my server (due to my restricted permissions - i can use only PHP and MySQL).
11
1853
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 the codes are syntax colored. Is there a tool that produce codes in html with syntax coloring?
2
641
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 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...
0
1212
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 that code, which is coloring text. Thanks.
2
1579
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 tags and the like. Is there any (possibly free!) C-Sharp control (based onto the RTF control, I imagine) or code sample for building a such control, or should I create my own from scratch? Thanks guys!
3
1222
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 ? Thank you for your help.
2
2992
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 I make the visual studio editor to color the the source file (the .pc file)? In Visual Studio 6 it was a right-click in the editor window, choosing properties and selecting Oracle PL/SQL as language.
7
2507
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 Python?
3
2840
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 colored text in a pre behind the text area, so far so good. The code I use for coloring is the following one: function colorize(){ var inTag=false, inAttr=false; text=textarea.text();...
0
8716
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8641
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9204
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9060
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8914
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7799
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.