Syntax coloring for FWH and Visual Studio IDE !!!

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 76 times
Contact:

Syntax coloring for FWH and Visual Studio IDE !!!

Post by Antonio Linares »

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

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
TimStone
Posts: 2955
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 2 times
Contact:

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

Post by TimStone »

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
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 76 times
Contact:

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

Post by Antonio Linares »

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
TimStone
Posts: 2955
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 2 times
Contact:

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

Post by TimStone »

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
Post Reply