Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To use Groovy from inside jEdit download this

Wiki Markup
{link:plugin|http://plugins.jedit.org/plugins/?SuperScript}{link}
. You'll need a fairly recent jEdit distribution.
Right now BSF isn't yet released with inbuilt Groovy support so you have to add the following code to the startup script in

...

Code Block
<user.settings.home>/.jedit/startup/startup.bsh
Code Block
bshjavabsh
java
org.apache.bsf.BSFManager.registerScriptingEngine(
  "groovy","org.codehaus.groovy.bsf.GroovyEngine",new String[]{"groovy","gv"}
);

...

Code Block
~/.jedit/catalog entry:

 <MODE NAME="groovy"    FILE="groovy.xml"
                        FILE_NAME_GLOB="*.{groovy,grv}"/>

The Groovy mode for jEdit is in the SVN since July, 9th 2004.
It is included in standard jEdit setup.
In order to know if you have this mode, check that the file <jEdit_Home>/modes/groovy.xml exists.