I write programs for a living but not many of them would be useful to the outside world even if I were able to give away the code; however I do have a few odds and ends that might be useful
Some notes on ideas for programs will be found in ProposedPrograms.
This is a mode for Emacs for editing and formatting Visual Basic 6 code. I suppose it should work for all versions of VB from 4 onwards but I have only tested it on VB6 source code. It might not work on source for VB.NET because of changes to the syntax regarding property functions; I'll have to take a look at it when I have some VB.NET code to work with.
I didn't write all of this but I did fix it up to work in the latest version of Emacs (20.5). Unfortunately there seems to be a problem using it with 21.2.1, I keep getting minor errors but if I load the files .elc before trying to use them instead of relying on the autoload mechanism they work fine.
There are just two files: one to load a VBP or VBG file and another to load and fontify a Visual Basic source file (.cls, .bas, .frm):
As mentioned earlier, I didn't write the original visual-basic-mode.el I just maintain it and occasionally enhance it. Here I say thank you to those who have helped.
When I discovered the regular expression classes of VBA it dawned on me that I could make a VB version of the formatting feature of the mode. The core of the job was simply to recreate all the regular expressions and package them in a class called Pretty.
This can be used as a formatting engine in an Add-In (already created and in use) or a standalone formatter (in progress). You can download the files from here: