Friday, October 20, 2006 6:46 PM
kkchan
Visual FoxPro Syntax Highlighter for Windows Live Writer (WLW)
I found a WLW plugin enables a user to insert highlighted source code. It is based on Wilco Bauwer's Syntax Highlighter. I downloaded WLW plugin from here and syntax highlighter engine from here.
Currently, syntax highlighter engine supports 24 programming languages : ASP.NET, XML, C, Cobol, ColdFusion, CPP, CSS, CSharp, Eiffel, Fortran, Haskell, Java, JavaScript, JScript, Mercury, MSIL, Pascal, Perl, PHP, Python, Ruby, SQL, VB, VBScript. Well, as usual, Visual FoxPro is missing from the list.
I would like to add VFP syntax highlight support to it. I open up SYntax Highlighter project in Visual Studio.NET 2005. I created new VFPHighlighter class by refering to the existing classes as template. I get VFP reserved words list from mhhtmlcode for VFP6 and added new list for VFP7,8 and 9. I changed couple of settings : -
- Red forecolor and yellow backcolor for string
- Recognize ', " and [] as string delimiter
- Blue forecolor for reserved words
- Register VFP highlighter to Syntax Highlighter engine
You can access the latest binary and source code from here. Just replace Wilco.SyntaxHighlighter.dll under program files\WIndows Live Writer\PlugIn with new one.
