jEdit Community - Resources for users of the jEdit Text Editor
Archives
Code Aide
Submitted by bencom on Tuesday, 15 August, 2006 - 02:20
On my system Debian Sarge Sun Java 1.5.0_08 code aide breaks the navigation keys up and down.
Different codes
Submitted by Mauro on Tuesday, 15 August, 2006 - 19:19
Hello,
I installed JEdit and found it wonderful.

I easily changed the color code settings for PHP but now I've a little problem.
That is: very often in web pages you have sections with different codes.

In the page I used for testing purposes I have:
- about 20 lines in PHP;
- about 20 lines in JavaScript;
- about 80 lines in (X)HTML;
Now, the three languages are following the "color rules" I set for PHP.

It is possible to have different code colors for these three languages in the same .php page? Please, tell me it is... Smiling and possibly how...

Thanks very much.
ActionHooks plugin extension
Submitted by stellari on Tuesday, 15 August, 2006 - 21:37
I would like to use ActionHook plugin to save the open buffers upon jEdit loosing focus (i.e. the user switching to a different window).

I'm a novice in using jEdit and I don't know much aboiut Java.

Any suggestion, or better help, would be greatly appreciated.

Franco
Console plugin not working with Windows 2000 Find command
Submitted by fenwar on Wednesday, 16 August, 2006 - 15:37
I like to pipe output of commands to Find.exe in windows, e.g. (an actual example)

svn log -v -q | find "json.js"

(When I don't know where a file that has been removed from project is in my svn repository...)

anyway this works absolutely fine in Windows 2000 command prompt, but in jEdit Console with the same input I get the following error message:

FIND: Parameter format not correct
svn: Write error: Invalid argument


I can run the first part of the command e.g. "svn log -v -q" fine.

If I try piping the output at all it seems to be ignored (e.g. "svn log -v -q | more" does not work)

However using the '>' operator to append output to a file works e.g. "svn log -v -q > temp.txt"

But still find does not work - e.g. in windows 2000 I could now type

find "json.js" temp.txt and get the desired result, but jEdit Console still returns

FIND: Parameter format not correct

I am using jEdit 4.3pre6 using Java 1.5.0_06 and Console 4.2.6.4

Has anyone else encountered/found a workaround for this issue (other than not using jEdit console)? Are there other combinations of Java/jEdit/Console versions without this problem?

Thanks in advance

Paul F
Close non project files (Close_non_project_files.bsh v1 by Jakub Roztocil)
Submitted by Oswald on Wednesday, 16 August, 2006 - 15:46
This macro closes opened buffers which are not members of current project.
Difference between Jedit 4.2 and 4.3pre6
Submitted by Fabio2006 on Thursday, 17 August, 2006 - 10:44
Hello Developpers I have a lite Script who work fine in Jedit 4.2 but not in 4.3pre5 and not in 4.3pre6. The Console Window open and wait but there are errors in the Command Window and in the BeanShell Window. Is there any idea what I can change? Regrads, Fabio import console.Console; { Buffer b = view.getBuffer(); String strName = b.getName(); String strPath = b.getPath(); String strCmd = new String("java.exe -jar \"C:\\Programme\\Interlis\\ili2c\\ili2c.jar\" --without-warnings \"" + strPath + "\""); runCommandInConsole(view, "System", strCmd); } 1) Console Window: [error] BeanShell: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESea rchMatcher [error] BeanShell: at console.StreamThread.(StreamThread.java:226) [error] BeanShell: at console.ConsoleProcess.(ConsoleProcess.java:65) [error] BeanShell: at console.SystemShell.execute(SystemShell.java:222) [error] BeanShell: at console.Console.run(Console.java:429) [error] BeanShell: at console.Console.run(Console.java:226) [error] BeanShell: at console.Console.run(Console.java:202) [error] BeanShell: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho d) [error] BeanShell: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Sourc e) [error] BeanShell: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown S ource) [error] BeanShell: at java.lang.reflect.Method.invoke(Unknown Source) [error] BeanShell: at bsh.Reflect.invokeOnMethod(Reflect.java:148) [error] BeanShell: at bsh.Reflect.invokeObjectMethod(Reflect.java:80) [error] BeanShell: at bsh.Name.invokeMethod(Name.java:856) [error] BeanShell: at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72) [error] BeanShell: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:1 02) [error] BeanShell: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:4 7) [error] BeanShell: at bsh.BSHBlock.evalBlock(BSHBlock.java:130) [error] BeanShell: at bsh.BSHBlock.eval(BSHBlock.java:80) [error] BeanShell: at bsh.BshMethod.invokeImpl(BshMethod.java:349) [error] BeanShell: at bsh.BshMethod.invoke(BshMethod.java:246) [error] BeanShell: at bsh.BshMethod.invoke(BshMethod.java:179) [error] BeanShell: at bsh.Name.invokeLocalMethod(Name.java:956) [error] BeanShell: at bsh.Name.invokeMethod(Name.java:805) [error] BeanShell: at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72) [error] BeanShell: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:1 02) [error] BeanShell: at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:4 7) [error] BeanShell: at bsh.BSHBlock.evalBlock(BSHBlock.java:130) [error] BeanShell: at bsh.BSHBlock.eval(BSHBlock.java:80) [error] BeanShell: at bsh.BSHBlock.eval(BSHBlock.java:46) [error] BeanShell: at bsh.Interpreter.eval(Interpreter.java:641) [error] BeanShell: at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:339) [error] BeanShell: at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:284) [error] BeanShell: at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:210) [error] BeanShell: at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros. java:1012) [error] BeanShell: at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:435) [error] BeanShell: at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandl er.java:229) [error] BeanShell: at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2933) [error] BeanShell: at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditA ction.java:224) [error] BeanShell: at javax.swing.AbstractButton.fireActionPerformed(Unknown So urce) [error] BeanShell: at javax.swing.AbstractButton$Handler.actionPerformed(Unknow n Source) [error] BeanShell: at javax.swing.DefaultButtonModel.fireActionPerformed(Unknow n Source) [error] BeanShell: at javax.swing.DefaultButtonModel.setPressed(Unknown Source) [error] BeanShell: at javax.swing.AbstractButton.doClick(Unknown Source) [error] BeanShell: at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown So urce) [error] BeanShell: at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseRelea sed(Unknown Source) [error] BeanShell: at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source ) [error] BeanShell: at java.awt.Component.processMouseEvent(Unknown Source) [error] BeanShell: at javax.swing.JComponent.processMouseEvent(Unknown Source) [error] BeanShell: at java.awt.Component.processEvent(Unknown Source) [error] BeanShell: at java.awt.Container.processEvent(Unknown Source) [error] BeanShell: at java.awt.Component.dispatchEventImpl(Unknown Source) [error] BeanShell: at java.awt.Container.dispatchEventImpl(Unknown Source) [error] BeanShell: at java.awt.Component.dispatchEvent(Unknown Source) [error] BeanShell: at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) [error] BeanShell: at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) [error] BeanShell: at java.awt.LightweightDispatcher.dispatchEvent(Unknown Sour ce) [error] BeanShell: at java.awt.Container.dispatchEventImpl(Unknown Source) [error] BeanShell: at java.awt.Window.dispatchEventImpl(Unknown Source) [error] BeanShell: at java.awt.Component.dispatchEvent(Unknown Source) [error] BeanShell: at java.awt.EventQueue.dispatchEvent(Unknown Source) [error] BeanShell: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unk nown Source) [error] BeanShell: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unkno wn Source) [error] BeanShell: at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [error] BeanShell: at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [error] BeanShell: at java.awt.EventDispatchThread.run(Unknown Source) 2) BeanShell Window: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESearchMatcher at console.StreamThread.(StreamThread.java:226) at console.ConsoleProcess.(ConsoleProcess.java:65) at console.SystemShell.execute(SystemShell.java:222) at console.Console.run(Console.java:429) at console.Console.run(Console.java:226) at console.Console.run(Console.java:202) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at bsh.Reflect.invokeOnMethod(Reflect.java:148) at bsh.Reflect.invokeObjectMethod(Reflect.java:80) at bsh.Name.invokeMethod(Name.java:856) at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at bsh.BSHBlock.evalBlock(BSHBlock.java:130) at bsh.BSHBlock.eval(BSHBlock.java:80) at bsh.BshMethod.invokeImpl(BshMethod.java:349) at bsh.BshMethod.invoke(BshMethod.java:246) at bsh.BshMethod.invoke(BshMethod.java:179) at bsh.Name.invokeLocalMethod(Name.java:956) at bsh.Name.invokeMethod(Name.java:805) at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at bsh.BSHBlock.evalBlock(BSHBlock.java:130) at bsh.BSHBlock.eval(BSHBlock.java:80) at bsh.BSHBlock.eval(BSHBlock.java:46) at bsh.Interpreter.eval(Interpreter.java:641) at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:339) at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:284) at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:210) at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1012) at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:435) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229) at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2933) at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:224) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
GNOME Clearlooks icon theme for jEdit (jedicons-clearlooks.jar v0.1)
Submitted by Oswald on Thursday, 17 August, 2006 - 20:47

This icon set is based on GNOME Icons for jEdit, but contains icons from Clearlooks icon theme, instead of GNOME default icons

Put this file in $JAVA_HOME/jre/lib/ext (I have it in /usr/java/jre1.6.0/lib/ext) and restart jEdit.

See screenshot

troubles installing on Ubuntu on PowerBook G4
Submitted by strongclad on Thursday, 17 August, 2006 - 23:49
Hello

I've recently installed the latest version of Ubuntu on my PowerBook G4, and I'm having issues with getting the jEdit packages from the sourceforge repositories.

I've done this on my desktop computer already (which is an x86 with Ubuntu-dapper) so I'm not completely blind at using Synaptic or apt-get.

I've followed the directions from beginning to end on how to add the repositories for apt, made sure of no misspelled words, but when I run apt or synaptic to install, they both tell me that they cannot find the repositories.

I'm not too experienced with using apt quite yet, but I've searched around the net and still can't find an answer as to why my x86 Ubuntu can reach the repositories and my PowerBook G4 Ubuntu cannot.

I would really appreciate any help with this problem. Thanks.
troubles installing on Ubuntu on PowerBook G4
Submitted by strongclad on Thursday, 17 August, 2006 - 23:49
Hello

I've recently installed the latest version of Ubuntu on my PowerBook G4, and I'm having issues with getting the jEdit packages from the sourceforge repositories.

I've done this on my desktop computer already (which is an x86 with Ubuntu-dapper) so I'm not completely blind at using Synaptic or apt-get.

I've followed the directions from beginning to end on how to add the repositories for apt, made sure of no misspelled words, but when I run apt or synaptic to install, they both tell me that they cannot find the repositories.

I'm not too experienced with using apt quite yet, but I've searched around the net and still can't find an answer as to why my x86 Ubuntu can reach the repositories and my PowerBook G4 Ubuntu cannot.

I would really appreciate any help with this problem. Thanks.
Difference between Jedit 4.2 and 4.3pre6
Submitted by Fabio2006 on Friday, 18 August, 2006 - 05:48
Hello Developpers
I have a lite Script who work fine in Jedit 4.2 but not in 4.3pre5 and not in 4.3pre6.
The Console Window open and wait but there are errors in the Command Window and in the BeanShell Window.
Is there any idea what I can change?
Regrads,
Fabio

import console.Console;
{
Buffer b = view.getBuffer();
String strName = b.getName();
String strPath = b.getPath();

String strCmd = new String("java.exe -jar \"C:\\Programme\\Interlis\\ili2c\\ili2c.jar\" --without-warnings \"" + strPath + "\"");
runCommandInConsole(view, "System", strCmd);
}

1) Console Window Errors:

[error] BeanShell: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESea
rchMatcher
...and a lot of more error lines...

2) BeanShell Window Errors:

java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESearchMatcher
...and a lot of more error lines...
Difference between Console PlugIn 4.1.2 in Jedit 4.2 and 4.3pre6
Submitted by Fabio2006 on Friday, 18 August, 2006 - 05:55
Hello Developpers
I have a lite Script who work fine in Jedit 4.2 but not in 4.3pre5 and not in 4.3pre6.
The Console Window open and wait but there are errors in the Command Window and in the BeanShell Window.
Is there any idea what I can change?
Regrads,
Fabio

import console.Console;
{
Buffer b = view.getBuffer();
String strName = b.getName();
String strPath = b.getPath();

String strCmd = new String("java.exe -jar \"C:\\Programme\\Interlis\\ili2c\\ili2c.jar\" --without-warnings \"" + strPath + "\"");
runCommandInConsole(view, "System", strCmd);
}

1) Console Window Errors:

[error] BeanShell: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESea
rchMatcher
...and a lot of more error lines...

2) BeanShell Window Errors:

java.lang.NoClassDefFoundError: org/gjt/sp/jedit/search/RESearchMatcher
...and a lot of more error lines...
explict folding mode
Submitted by haras on Friday, 18 August, 2006 - 17:02
how to use explict folding mode in php, i have tried almost all function in jedit and nothing happens :{

i have for example:

/**
* @name render_menu
// +{{{
* .... some other
*/
public static function render_menu() {
....code...
} //}}}

i want this to produce:
+ render_menu

when i hit + it will expand the code of this method


i have makro downloaded from this site to collapse folds on startup beginning with -{{{ and expand statring with +{{{
but it doesn't work
Damn those Pangos.
Submitted by Modulok on Friday, 18 August, 2006 - 18:07
I installed jEdit on Debian, no problem. When I fire up the jedit.jar through my java bytecode rpreter, it shows the jedit splash screen and then hangs. When I interrupt the process, the following error is printed to the shell I launched jedit from:

(.:26442): Pango-WARNING **: Invalid UFT-8 string passed to pango_layout_set_text()

Anyone have any ideas on how to resolve this?
-Modulok-
Open_Last_Closed_Buffer.bsh v0.1 by Jakub Roztocil
Submitted by Oswald on Monday, 21 August, 2006 - 09:28
Opens last closed buffer.
Jedit with Lilypond on Suse 10.1
Submitted by marino on Wednesday, 23 August, 2006 - 17:18
Hello everyone,
me installed jEdit4.3pre6 version and lilypond-2.8.6-1 version.
many things not works.
me can launch and use Lilipond to compile file, but internal midi player, DVI and lots of features not working.
solved something installing back version of Console.
there's a mix of plugin and program versions all working together?
all seems wonderful but not working, pity!!

thank you in advance.
Open/Save dialog keyboard focus - Is this a bug?
Submitted by 2gooder on Wednesday, 23 August, 2006 - 17:22
Hey guys. I've been using jEdit for a few years and I alway use the latest development version. As of version 4.3pre5 I've noticed that when I open a Save or Open dialog (Crtl-S or Ctrl-O) the keyboard focus is no longer in the "File name:" text box.

The result of this is that I can no longer begin typing a name of a file when the dialog open. Instead I have to move to the mouse and click on the file name text box. It really slows me down when I am creating or opening lots of files.

Should I file this as a bug, or is this a new "feature"?

Thanks a lot,
Simon
linecomment //
Submitted by OBI_Ron on Wednesday, 23 August, 2006 - 20:05
Hello everyone,

I have just started using jEdit, and would like to create a new edit mode to handle Poser cr2 files. I have read thru the help docs, and am using the python.xml as a reference.

In python.xml, the following line handles comments:
PROPERTY NAME="lineComment" VALUE="#" /

So each line that begins with # is recognized as a comment line.

In a cr2 file, comment lines begin with //, and have no end of comment designation. So I tried to use the same cocept:
PROPERTY NAME="lineComment" VALUE="//" /

But I am not getting the results that I would expect. Comment lines are not recognized at all.

Can anyone shed some light on this?

Thanks for your time!
editing .wsf files
Submitted by jeisma on Thursday, 24 August, 2006 - 05:09
hi!

im trying to edit .wsf files but jedit cannot seem to syntax highlight codes with the "script language" sections.

it can aptly recognize .js files though.

i tried to change default edit mode to javascript, xml, html, but to no avail.

anyone have tips on how to go around this?

thanks!

joey
Info Viewer using Internet Explorer or Firefox under Windows
Submitted by mserero on Friday, 25 August, 2006 - 01:16
Hello,

I haven't been abble to use Internet Explorer or Firefox under Windows with Info Viewer.

I use the following command line:

start "c:\Program Files\Internet Explorer\iexplorer.exe" $u

It seems to return the content of the buffer and not the file URL. I used jedit 4.2-pre6 with Info Viewer 1.5.9.

Has anyone attempted to do the same thing?
Edit modes "FUNCTION"
Submitted by Manil on Friday, 25 August, 2006 - 02:30
Hi,

i want to know if it is possible to have something like this highlighted as a function:

a ();
b ();
aa ();
ababab();


<*MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="FALSE">(<*/MARK_PREVIOUS>

I know that this will highlight a function but with no space before (, i have code like that sometimes and i want to know if there is a way to highlight a function with n spaces before (

Thx a lot
User login
Browse archives
« August 2006 »
MoTuWeThFrSaSu
 
4
8
13
19
20
22
27
30
 
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   108250
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309