jEdit Community - Resources for users of the jEdit Text Editor
Archives
corpus for computational linguisitcs
Submitted by hamyfox on Sunday, 27 September, 2009 - 20:49
Hi,

I recently discovered Jedit and started working with Jedit macros.
This site resources have been very helpful in assisting me with writing
a search and replace macro for HTML documents for corpus purposes.
I would like to clean HTML files and save them into txt files.
I am familiar with classes and methods from C++ but not quite
with Beanshell coding. Are there any references for Beanshell codes and methods ?
I would appreciate any help, in form of macro code for the following:
1- macro to delete first x lines of a document
2- macro for keeping only contents of title, paragraph or body of an HTML document

Any help in this matter through code or references would be greatly appreciated. Thanks.
newbie, BeanShell error, emacs emulation, WinXP
Submitted by gap on Monday, 28 September, 2009 - 22:49
I'm trying out jEdit as a possible 21st Century replacement for XEmacs to write python code. By now my fingers are hard-wired with Emacs keybindings, so I installed Brian's Emacs Emulation Package on two different WinXP machines. On one it works just fine. On the other I get a BeanShell error when jEdit starts (text below). I've reinstalled jEdit and the Emacs Package, updated java, and rebooted, but I still get this error. I'm utterly java illiterate, but it does look like it's failing on the very first line of emacs_bindings.bsh, so I suspect some installation problem. My java is:
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)

Please help ?!
-gap

------------------------------------------------------------
Sourced file: C:\Documents and Settings\Gary\.jedit\startup\emacs_bindings.bsh : Class: bsh.ClassIdentifier not found in namespace : at Line: 26 : in file: print : bsh .ClassIdentifier

Called from method: print : at Line: 8 : in file: C:\Documents and Settings\Gary\.jedit\startup\emacs_bindings.bsh : print ( "in emacs_bindings.bsh" )
at org.gjt.sp.jedit.bsh.BSHAmbiguousName.toClass(BSHAmbiguousName.java:74)
at org.gjt.sp.jedit.bsh.BSHType.getType(BSHType.java:154)
at org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:63)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.BSHUnaryExpression.eval(BSHUnaryExpression.java:58)
at org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:123)
at org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:52)
at org.gjt.sp.jedit.bsh.BSHIfStatement.evaluateCondition(BSHIfStatement.java:63)
at org.gjt.sp.jedit.bsh.BSHIfStatement.eval(BSHIfStatement.java:46)
at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80)
at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186)
at org.gjt.sp.jedit.bsh.Name.invokeLocalMethod(Name.java:955)
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:801)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:331)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:279)
at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:205)
at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1030)
at org.gjt.sp.jedit.jEdit.runStartupScripts(jEdit.java:3704)
at org.gjt.sp.jedit.jEdit.main(jEdit.java:511)
Options Not Visible
Submitted by ptoole on Wednesday, 30 September, 2009 - 20:59
I am unable to see the "Example" option show up under the Plugin Options. Has anyone seen this behavior before?

Running jedit in debug mode returns NO errors, I get no messages back. I've tried all permutations including options-group in my properties file. Other plugins appear to be working fine.


Here's my proprty file:


# Properties file for example plugin

# application activator (4.2)
plugin.examplePlugin.activate=defer

# general plugin information
plugin.com.example.fe.jedit.ExamplePlugin.name=example
plugin.com.example.fe.jedit.ExamplePlugin.description=Tools used for example Development
plugin.com.example.fe.jedit.ExamplePlugin.longdescription=description.html
plugin.com.example.fe.jedit.ExamplePlugin.author=Patrick Toole
plugin.com.example.fe.jedit.ExamplePlugin.version=0.2
plugin.com.example.fe.jedit.ExamplePlugin.docs=index.html
plugin.com.example.fe.jedit.ExamplePlugin.depend.0=jedit 04.02.09.00
plugin.com.example.fe.jedit.ExamplePlugin.depend.1=jdk 1.3

# window title
example.title=Explain Plan


# labels for dockables.xml
ExplainPlanImage.title=Explain Image
ExplainPlanImage.label=Explain Image Window
ExplainPlanText.title=Explain Text
ExplainPlanText.label=Explain Text Window
QueryTableMetrics.title=Table Metrics
QueryTableMetrics.label=Table Metrics Window
QueryTableColumns.title=Table Columns
QueryTableColumns.label=Table Columns Window
QueryProjections.title=Projection Definitions
QueryProjections.label=Projection Definitions Window



# application menu items (4.2)
plugin.com.example.fe.jedit.examplePlugin.menu=example.explain-selection
# labels for actions
example.explain-selection.label=Explain Selection

# option pane
plugin.com.example.fe.jedit.ExamplePlugin.option-pane=example-sql
options.example-sql.label=Example
options.example-sql.code=new com.example.fe.jedit.ExampleOptionPane();
Custom File Extensions: Enabling syntax highlighting and abbreviations for
Submitted by navin on Sunday, 4 October, 2009 - 18:34
Hello all,
Please forgive me for this newbie question. I have been using jEdit successfully for a while now to create PHP scripts. I have recently started using the CakePHP framework and intend to keep using jEdit as my primary editor. However, CakePHP requires PHP/HTML code in certain files that don't have names that end in the familiar .php extension. I'd like to enable PHP syntax highlighting and abbreviation support for such files. My question is: How do I get jEdit to use PHP mode for files that don't have names that end with the .php extension?

Thanks,
Navin
Documentation for syntax highlighting
Submitted by robw on Friday, 9 October, 2009 - 23:03
Newbie here!

I've looked in all the docs can find but can't find anything about how to create a syntaxt highlighting file. Anyone knkw where I can get instructions?

Thanks.

Rob Wheeler (UK)
after installing red dots and blue line in editore
Submitted by Dshah on Saturday, 10 October, 2009 - 17:19
Hi i am new to jedit and just installed jedit version 4.3 on windows 7. now i have three problems.

1. there are red dots on every line
2. there is one blue horizontal line on middle of the page.
3. i installed the FTP plugin but its not connecting to my server host.

Thanks for any help
Best Wishes
Trouble building jEdit in Eclipse
Submitted by kenmcfa on Saturday, 10 October, 2009 - 23:32
Hi, I'm trying to built the latest trunk of jEdit in Eclipse. I checked it out from the sourceforge SVN, and then imported it as a new project from the ant buildfile. However doing so gives me loads of problems. A lot of them are complaining that various imports cannot be resolved. I *can* fix these by importing the appropriate .jar files on the build path. This fixes those errors, but I also get package related errors such as "The declared package "macosx" does not match the expected package "jars.MacOSX.macosx"" I could fix these by replacing the package declarations, but surely this isn't necessary? Is it possible that I've set something up wrong?

Any help would be much appreciated.
jedit doesn't work with root
Submitted by cerkauskas on Wednesday, 14 October, 2009 - 17:50
when i'm trying to start jedit with root, i getting error, but when starting with simple user it works! error here: [root@tomas tomas]# jedit No protocol specified [error] main: Exception in thread "main" [error] main: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. [error] main: at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) [error] main: at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52) [error] main: at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155) [error] main: at java.security.AccessController.doPrivileged(Native Method) [error] main: at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:131) [error] main: at java.lang.Class.forName0(Native Method) [error] main: at java.lang.Class.forName(Class.java:169) [error] main: at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) [error] main: at javax.swing.RepaintManager.(RepaintManager.java:179) [error] main: at javax.swing.JComponent.repaint(JComponent.java:4734) [error] main: at java.awt.Component.repaint(Component.java:3081) [error] main: at javax.swing.JComponent.setBackground(JComponent.java:2705) [error] main: at org.gjt.sp.jedit.gui.SplashScreen.(SplashScreen.java:35) [error] main: at org.gjt.sp.jedit.GUIUtilities.showSplashScreen(GUIUtilities.java:1519) [error] main: at org.gjt.sp.jedit.jEdit.main(jEdit.java:299) can anybody help me? Arch Linux
Commando File for Context Free (cfdg.xml v0.17 by monkstone)
Submitted by monkstone on Wednesday, 21 October, 2009 - 16:17
My first commando file, allows me to run cfdg from within jedit. You will need to tune it for your system, available options are crop size, choice of svg or png output. Default output filename is as the input rule, with appropriate extension (ie "png" or svg" depending on chosen output format) is added when run the command (ie hit OK button). Updated version as of 10 July 2012, now includes -Q option for quicktime movies output, depends on release version of CF3 with compiled in ffmpeg support on linux.
formatting paragraphs within comments
Submitted by mab2001 on Wednesday, 21 October, 2009 - 16:27
Hi,

I use "Format Paragraph" along with "Rectangular Selection" to format text in a comment block (where there is "* " to the left of every line). The problem I have is that this always formats the paragraph to be 80 characters wide regardless of the left column of my selection. Is there a way to get Format Paragraph in this instance to use column 80 minus the selection's left column as the paragraph width?

Alternately, is there a plugin to aid in writing and formatting ASDoc or JavaDoc comments?

Thanks,
Mike
JavaSideKick Code Completion NullPointerException
Submitted by leeys on Thursday, 22 October, 2009 - 03:22
Hi, I am getting this when I trigger code completion with JavaSideKick. Can anyone help?

I installed JavaSideKick via Plugin Manager and have configured the classpath for the project.

Thanks.

java.lang.NullPointerException
at sidekick.java.util.Locator.getClasses(Locator.java:357)
at sidekick.java.util.Locator.getProjectClasses(Locator.java:299)
at sidekick.java.JavaCompletionFinder.getPossibleQualifiedCompletions(JavaCompletionFinder.java:230)
at sidekick.java.JavaCompletionFinder.getPossibleCompletions(JavaCompletionFinder.java:169)
at sidekick.java.JavaCompletionFinder.complete(JavaCompletionFinder.java:68)
at sidekick.java.JavaParser.complete(JavaParser.java:640)
at sidekick.SideKickActions.complete(SideKickActions.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134)
at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:98)
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:871)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80)
at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258
Jump to beginning of current function (JumpToBeginningOfFunction.bsh v0.1 by Shlomy Reinstein)
Submitted by shlomy on Thursday, 22 October, 2009 - 14:37
Using a SideKick tree where the functions in the current buffer are shown, jumps to the beginning of the function where the caret is located by finding the first '{' in the current asset.
Jump to end of current function (JumpToEndOfFunction.bsh v0.1 by Shlomy Reinstein)
Submitted by shlomy on Thursday, 22 October, 2009 - 14:38
Using a SideKick tree where the functions in the current buffer are shown, jumps to the end of the function where the caret is located by finding the last '}' in the current asset.
Cant get hyperlink plugin to work
Submitted by robw on Friday, 23 October, 2009 - 21:09
I have installed the hyperlink plugin and assumed it would work the way it does in every other editor I've used. You can click on the link while holding the CTRL key down and I assumed that it would open the page in a brower. However, it just grabs the source code of the page and opens it the the editor. Very odd. Am I configuring it incorrectly? I cant find any documentation for it. Perhaps the is an alternatiev way of rendering hyperlinks as hot spots. Assistance appreciated.

RobW
Search asset exact (SearchAssetExact.bsh v0.1 by Shlomy Reinstein)
Submitted by shlomy on Saturday, 24 October, 2009 - 14:32
Searches the current SideKick asset (e.g. C function) for the selected word (exact match).
File Extensions and Modes
Submitted by niklasfi on Sunday, 25 October, 2009 - 09:31
Is there a way to tell jEdit to always open files of a certain file Extension in a certain mode? I am doing some work in Maple and I would like all ".maple" files to be opened in the Maple-mode. I do not think any file extensions have been registered with maple, as typical Maple files from the XMaple editor (.mw, mws) are not plain text files. Though it is possible to pass plain text files the maple compiler. Anyways. I am looking forward to your answers.
Cheers,
Niklas
Windows 7 64bit, Java 1.6.0_16 64bit Server VM - jedit4.3pre17install.exe unable to locate VM
Submitted by jakbal on Wednesday, 28 October, 2009 - 17:17
Hello All -

First let me start off by stating that jEdit is fantastic tool, and that I use it religiously every day. I recently upgraded (installed rather, dunno if its an upgrade yet) to Windows 7 on my DELL XPS laptop and I'm having problems installing jEdit.

Java Version:

C:\Users\alex>java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

JAVA_HOME Definition:

C:\Users\alex>set JAVA_HOME
JAVA_HOME=C:\java\jdk1.6.0_16

JRE_HOME Definition:

C:\Users\alex>set JRE_HOME
JRE_HOME=C:\java\jdk1.6.0_16\jre

PATH Definition:

C:\Users\alex>set PATH
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\java\jdk1.6.0_16\bin;

When I run the jedit4.3pre17install.exe I first get the Windows 7 box asking me if I want to allow this .exe to modify my system, and I say yes. I then get the jEdit language selector for the installer, and this also works fine (I can select languages, etc). Then I choose to continue and I get this error message:

"Setup was unable to find an installed Java Runtime Environment or Java Development Kit of version 1.4 or higher.
You must have installed at least the JDK or JRE 1.4 to continue setup.
Please install one from http://java.sun.com and restart setup."

Advice?
Jedit.org Estimated Worth $14.9 Thousand USD
Submitted by arunchatterjee98 on Wednesday, 28 October, 2009 - 18:20
Jedit.org Estimated Worth $14.9 Thousand USD


Description A cross platform programmer's text editor written in Java that is customizable with plugins. [Requires Java VM]
Daily Pageview 13,845
Daily Ads Revenue $20.39
Traffic Rank 79450(Alexa World Rank)
Page Rank (Goolge Page Rank)

check it out here http://thenetinfo.com/stats/jedit.org
Plugin color control
Submitted by nfgf on Wednesday, 28 October, 2009 - 19:39
Hello, folks.

I am new to jEdit and must say that I am still experiencing it and, by the way,
loving it a lot. It has all that I wanted from a text editor and two extra
important features: it has a good scripting language and runs on Windows and
Linux, so I can use the same software at both systems.

I have defined my color preferences and installed all the plugins I think are
important to me. My current configuration uses black as the editing panel
background color, but I failed to find a way to control the plugin colors so I
could have a homogenous environment. I can see that the jEdit screenshots page
shows many plugins with different background colors so I guess that I can configure
the plugin colors somehow.

Does anybody know how to control the plugin appearance?

Thank you in advance.
NetRexxScript plugin
Submitted by kermit on Sunday, 1 November, 2009 - 22:31
Newbie plugin developer here. I have a new plugin ready for beta testing. It adds support for NetRexx macros/scripts in jEdit. (Before anyone mentions the SuperScript plugin - yes I know about it and [A] it doesn't work, [B] BSF 2.x NetRexx support is slower than molasses, [C] it has no real features for practical use, [d] and did I mention that it doesn't work? Eye-wink

Should I upload it here first since it may not be production quality yet and I am not really sure it is in the right format for Plugin Central? Can anyone check it out and give pointers on the next steps? I will try to do the submit process to sourceforge also when I get time.

By the way, even if you don't want to learn anything about NetRexx, this plugin supports compiled Java classes as jEdit macros also so it may have a wider appeal. Anyway here is the announcment that I posted to the NetRexx mailing list:

The NetRexxScript plugin for jEdit is now feature complete and ready for beta testing.

Here are the main features:

* Efficient execution of NetRexx scripts and macros in jEdit
* Optional caching of parsed scripts to improve performance
* Option to "preparse" all available scripts as a unit for performance (aka "greased lightning mode") and cross-script access support
* Option to suppress or allow trace output
* Options to execute a currently open NetRexx file including unsaved changes
* Optional dockable console window with command line to run scripts with parms and view say output or respond to ask input
* View say output with or without trace from the console window to aid debugging
* Option to "prefix" scripts automatically adds access to jEdit functions and variables
* Script parse errors are automatically highlighted in script source files and listed in the "Error List" as well as displayed in a console window
* User defined "classpath" option for making classes available to NetRexx scripts
* User defined "scriptpath" option for access to scripts outside of jEdit macro libraries
* Support for executing compiled NetRexx scripts or any "main" type Java class file as a macro or console command
* Includes an updated version of the "NetRexx at Once" cross reference guide to Java and NetRexx

Here are the distributions:

Binaries -

http://kermitkiser.com/NetRexx/Script/NetRexxScript-0.1.0-bin.zip
http://kermitkiser.com/NetRexx/Script/NetRexxScript-0.1.0-bin.tgz

Binary plus source -

http://kermitkiser.com/NetRexx/Script/NetRexxScript-0.1.0.zip
http://kermitkiser.com/NetRexx/Script/NetRexxScript-0.1.0.tgz

Help document:

http://kermitkiser.com/NetRexx/Script/NetRexxScript.html

To install, download and unzip a distribution file, copy NetRexxScript.jar and NetRexxC.jar to your jEdit profile "jars" directory, then restart jEdit. The jars directory is probably "C:\Documents and Settings\username\.jedit\jars" on Windows or "/home/username/.jedit/jars" on Linux.

To verify the install, select Plugins => NetRexxScript => NetRexxScript to open the console window, dock it at top or bottom, then select Macros => NetRexx to run the included sample scripts or just type some NetRexx in a new edit window and click the "Run current" button in the console.

Please let me know if there are any problems.

-- Kermit
User login
Browse archives
« September 2009 »
MoTuWeThFrSaSu
 
1
2
3
4
6
7
8
9
12
13
15
16
17
19
20
25
26
29
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   97301
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299