Solved

New language support in MS Developer Studio 97

Posted on 1998-08-16
5
194 Views
Last Modified: 2010-04-01
Hello!
How we can add highlighting, parsing and syntax expansion in MS Developer Studio 97 for a new language (Perl, for example).
0
Comment
Question by:snemanov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 4

Expert Comment

by:agreen
ID: 1170422
Read the "Setting Syntax Coloring for User-Defined Types" MSDN's article:
http://premium.microsoft.com/msdn/library/devprods/devdoc/f1/f3/d5/s1d865.htm 
0
 

Author Comment

by:snemanov
ID: 1170423
Thank you for the answer. The mentioned source is refer to highlighting of additional tokens in C++.
We have our own rules for parsing and syntax expansion of another language and we should build it into Developer Studio 97.
0
 
LVL 5

Expert Comment

by:yonat
ID: 1170424
The only way I can think of, is to create your own editor, and have DevStudio use it whenever a file with appropriate extension is opened. AFAIK, there is no way to do what you want with simple config changes or even with DevStudio add-ins.
0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 300 total points
ID: 1170425
I don't think you can do it with their editor, but you can get pretty close (probably so most users won't notice).

MS Dev Studio supports ActiveX documents. If you write your editor as an ActiveX document server, your editor will appear as part of Developer studio.

Now you're probably saying - doesn't that mean I have to write my own editor (meaning hardwork) - yes but you can buy a pretty much complete editor with customizable syntax checking etc. from Stingray ("Objective Edit") - go to
http://www.stingsoft.com/oemfc/default.asp

Create your ActiveX document editor with the wizard, add this in ("The Frankenstein method of programming") are you've got pretty close to what you want.

One final comment, I heard an MS rep say (Sep 97 in the conference in San Diego) that new versions of Dev Studio would have features to make them extensible (apparently they've had a lot of compliants).  Dev Studio 6 is officially out September, and I don't see it on the what's new list, so not sure but perhaps they have more in there.

0
 

Author Comment

by:snemanov
ID: 1170426
Can I hook my own editor for my file extensions only (.pl for example) or the native editor will be replaced for the all file types?
Are internal debugging, fast reference/definition and other native editor features will be lost or should be written from scratch ?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question