FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Syntax coloring for FWH and Visual Studio IDE !!!
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Syntax coloring for FWH and Visual Studio IDE !!!
Posted: Sun Jun 08, 2014 03: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.




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



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 (fw): Select all Collapse
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 :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Syntax coloring for FWH and Visual Studio IDE !!!
Posted: Mon Jun 09, 2014 05: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Syntax coloring for FWH and Visual Studio IDE !!!
Posted: Mon Jun 09, 2014 06: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
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Syntax coloring for FWH and Visual Studio IDE !!!
Posted: Mon Jun 09, 2014 06: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

Continue the discussion