Sublime Text 2 syntax coloring for FoxPro code

I’m constantly reviewing text editors for coding in various programming languages and environments. Recently, Sublime Text 2 has gotten a lot of buzz, so I decided to give it a try, and I eventually wound up testing it on FoxPro code.

It’s got a nice Folder View panel on the side, tabbed edit windows, and tons of cool keyboard shortcuts for doing fancy editor tricks, but the first thing I missed was seeing the beautiful FoxPro language in colorized syntax. So, I dug in to learn how to write a syntax file and added all the keywords that are used in the semi-popular NotePad++ syntax file…

You can download the latest version and read instructions from my GitHub repo:

Sublime-Text-2-Syntax-Coloring-for-Visual-FoxPro

Here’s what it looks like so far:

image

To be fair, the same thing is possible in NotePad++, it just doesn’t look as cool:

SNAGHTML244a2173

4 thoughts on “Sublime Text 2 syntax coloring for FoxPro code”

  1. Matt, I’d appreciate a copy of this and I appreciate you working on it. I too think Sublime Text 2 has a much better look to it than Notepad++. I use Textpad mainly but I really like what they’re doing with Sublime.

  2. I’m starting a discussion forum on the translation of FoxPro programs to C#, and found your coloring js file on line. It doesn’t work with the forum software and was wondering if you’d be interested in helping me resolve this. Thanks for considering.

    1. The software I use for the forum is called XenForo and they use PrismJS for highlighting, but there’s no support for FoxPro.

Leave a Reply

Your email address will not be published. Required fields are marked *