Syntax coloring for FWH and Visual Studio IDE !!!

Syntax coloring for FWH and Visual Studio IDE !!!

Postby Antonio Linares » Sun Jun 08, 2014 3:57 am

This is an easy trick to implement syntax coloring in Visual Studio IDE. It is not perfect, but the results are quite impressive :-)

In Visual Studio Options - Text Editor - File Extension you can map your custom file extension to a Visual Studio editor.


Image

Next, we are going to define "C/C++ user defined keywords":

Image

Also, make sure the "usertype.dat" file is copied to "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE" and not "C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE"


usertype.dat
Code: Select all  Expand view
DEFINE
WINDOW
DIALOG
FONT
ACTIVATE
FROM
TITLE
COLOR
SAY
ON
RIGHT
CLICK
VALID
RESOURCE
CENTERED


Until we get a complete usertype.dat, remember that everytime that you modify it, you have to exit and reload Visual Studio to activate it.

And here it is the result :-)

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Syntax coloring for FWH and Visual Studio IDE !!!

Postby TimStone » Mon Jun 09, 2014 5:42 pm

You are doing this for Visual Studio 2012.

The 2013 is Version 12, not 11.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Syntax coloring for FWH and Visual Studio IDE !!!

Postby Antonio Linares » Mon Jun 09, 2014 6:12 pm

Tim,

Yes, but I installed today Visual Studio 2013 Ultimate and it works the same way :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Syntax coloring for FWH and Visual Studio IDE !!!

Postby TimStone » Mon Jun 09, 2014 6:21 pm

I assumed it would. I'm starting over, refining my prg source code and resources into files contained in the Documents - Visual Studio project folder ... so everything is in one place.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 31 guests