Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / July 2004

Tip: Looking for answers? Try searching our database.

Extending the core HTML editor for new tags

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Williamson - 19 Jul 2004 22:48 GMT
I am exploring the wonderful world of extending Visual Studio.  I am
debating whether I should take the "add-in" route or the go the full
hog and create a project type.

What i am wanting to do is to add CFML (ColdFusion) support to
VisualStudio.  Fundamentally CFML is just HTML but with a series of
new tags.  Thats it.  So i need different syntax highlighting for the
CFML tags (eg <cfset>), but overall its just HTML with all the same
rules that comes with HTML editing.

In addition to this, I have a debugger module, that allows me to step
through the CFML code.  But I don't necessarily need to use the
official VStudio debugger API.   I have implemented this before for
Java based IDE's and their plugin development was relatively simple.

My biggest fear is that I have to go back to C++!!!  I haven't done
C++ in over 8 years, and I was hoping to sink my teeth into C# when i
entered this world.  But that aside, the key thing is to get the job
done.

So with that in mind, my issues is that if i create a new
project/language for VStudio, then i am essentially reinventing the
wheel.  For what?  Just to have different tags highlighted in a
different color to the excellent inbuilt HTML editor.

Advice please.  :)

[1] Can i register a new file extension (aka .cfml/.cfm) that is
opened by the HTML editor?

[2] Can i add extend the HTML editor to add new html definitions to
cope with the CFML tags.

[3] I am comfortable with the 'add-in' side of things, but is C++ my
only choice when developing a new project for Visual Studio?

What do people think?  Thanks in advance for your input.
Chris Lovett - 20 Jul 2004 22:45 GMT
Is it well formed according to XML spec? If so, you could extend the XML
editor in VS 2005 which is written in C#.  The XML editor also supports
breakpoints.

> I am exploring the wonderful world of extending Visual Studio.  I am
> debating whether I should take the "add-in" route or the go the full
[quoted text clipped - 33 lines]
>
> What do people think?  Thanks in advance for your input.
Alan Williamson - 21 Jul 2004 16:37 GMT
> Is it well formed according to XML spec? If so, you could extend the XML
> editor in VS 2005 which is written in C#.  The XML editor also supports
> breakpoints.

Well yes it is, but i want to extend the HTML editor, because i don't
want to lose any of the functionality from the HTML side of things.
CFML (like ASP/PHP) has HTML code in there as well.

So can i extend the HTML editor in much the same way as you suggest
for the XML editor?  If so, where do i start looking?
Alan Williamson - 21 Jul 2004 16:38 GMT
> Is it well formed according to XML spec? If so, you could extend the XML
> editor in VS 2005 which is written in C#.  The XML editor also supports
> breakpoints.

Well yes it is, but i want to extend the HTML editor, because i don't
want to lose any of the functionality from the HTML side of things.
CFML (like ASP/PHP) has HTML code in there as well.

So can i extend the HTML editor in much the same way as you suggest
for the XML editor?  If so, where do i start looking?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.