jedit Posts

Adding Support for Visual Basic to Exuberent Ctags

jEdit has a great source code navigation plugin called Tags which uses Exuberant Ctags. By default Ctags doesn't support VB, which I'm seeing a lot of lately, but it does allow one to add support for laguages using regular expressions.

I added the following to c:\ctags.cnf:

--langdef=vb
--langmap=vb:.bas.cls.ctl.frm.vbs
--regex-vb=/^(Public|Private|\b)[ \t]*Sub[ \t]+([a-zA-Z0-9_]+)/\2/s,subroutine/i
--regex-vb=/^(Public|Private|\b)[ \t]*Function[ \t]+([a-zA-Z0-9_]+)/\2/f,function/i
--regex-vb=/^(Public|Private)[ \t]+([a-zA-Z0-9_]+)[ \t]+As[ \t]+/\2/v,variable/i
--regex-vb=/^(Public|Private|\b)[ \t]*Const[ \t]+([a-zA-Z0-9_]+)[ \t]+(As|=)[ \t]+/\2/c,const/i
--regex-vb=/^(Public|\b)[ \t]*Property[ \t]*(Get|Let|Set)[ \t]+([a-zA-Z0-9_]+)/\3/n,name/i
--regex-vb=/^(Public|Private|\b)[ \t]*Enum[ \t]+([a-zA-Z0-9_]+)/\2/e,enum/i
--regex-vb=/^([a-zA-Z_]+):/\1/l,label/i

These expressions probably aren't perfect, but I've found them to work pretty well. If you've got suggestions or improvements, please send them along.

Example output:

C:\Code\CASS\SMSSource>ctags -RV
RECURSING into directory "."
ignoring .\.cvsignore (unknown language)
ignoring .\360.ico (unknown language)
OPENING .\Advertiser.cls as vb language file
OPENING .\Advertisers.cls as vb language file
OPENING .\Affidavit.cls as vb language file
^C
C:\Code\CASS\SMSSource>

Here's a screen shot of the plugin in action:

[screen shot of Ctags w/VB in jEdit]

Tagged with: ctags vb jedit

posted April 17th, 2003

Released FirstMate 0.3.1 plugin for jEdit

  • Released FirstMate 0.3.1 plugin for jEdit. Fixes 2 bugs related to apostrophe handling for auto-paired characters.

Tagged with: firstmate announcement jedit

posted June 23rd, 2008

New Vimposter Releases

Tagged with: announcement vimposter jedit

posted December 8th, 2007

jEdit Plugin Releases and New and Updated jEdit Modes

Tagged with: firstmate announcement vimposter jedit moinmoin

posted April 15th, 2007

Released Tags 2.0.2 plugin for jEdit

  • Released Tags 2.0.2 plugin for jEdit. Updated for 4.3pre3.
  • Released MoinMoin 0.3.4 plugin for jEdit. Updated for MoinMoin 1.5.

Tagged with: moinmoin announcement jedit tags

posted April 14th, 2006

New Version of MoinMoin Plugin for jEdit

Tagged with: moinmoin announcement jedit

posted March 16th, 2006

Django Edit Mode for jEdit

Tagged with: announcement jedit

posted August 12th, 2005

New Vimposter Release

  • Updated Vimposter plugin to work with (and require) jEdit 4.3pre3 (not yet released). I probably won't do a new release until 4.3pre3 is released, unless I get requests, but the code's in the repository.
  • New build of new jEdit Launcher. Includes a GUI for editing settings, instead of having to edit the registry directly.

Tagged with: announcement vimposter jedit

posted July 20th, 2005

New EditorScheme Release and Build of New jEdit Launcher

  • New build of new jEdit Launcher, with better logging of errors and handling of missing 'Working directory setting'.
  • EditorScheme plugin 1.0, 'DarkMine' scheme from Matt Gilbert.

Tagged with: announcement jedit editorscheme

posted May 3rd, 2005

jEdit Macro Updates

Tagged with: announcement jedit

posted April 14th, 2005

Vimposter 0.0.7 Released

Tagged with: announcement vimposter jedit

posted April 12th, 2005

Vimposter 0.0.6 Released

Tagged with: announcement vimposter jedit

posted April 11th, 2005