jEdit Community - Resources for users of the jEdit Text Editor
Archives
automatic UTF-8 detection
Submitted by mh147 on Tuesday, 8 August, 2006 - 09:14
At several places, the devolopers state that one cannot auto-detect UTF-8 files.

That is not true. Other editors can do that reliably. Even Windows Notepad.

Here is what I think they are doing internally:
1. open the file byte-oriented
2. look if there are special UTF chars in the file (e.g. Ã)
if not: display the this way (byte-wise)
if so:
3. re-open (or scan) the file as UTF-8, looking if it loads error-free
(for instance all Ãx character pairs are valid UTF chars)
if so: display the file as UTF-8
if not:
4. re-open the file byte-oriented and display it this way

Of course, there is a chance, somebody would combine weird chars in a way it would accidently look like a valid UTF-8 file. But compare how often such a file would occur and be mis-detected by the proposed algorithm to the the amount of genuine UTF-8 files that get opened in jEdit and are mis-detected by the current auto-detection. This is a dozen against some million.

Looking at entries in this forum, I think this feature is more than due in order for jEdit to keep up-to-date and to continue gaining new users.
automatic encoding detection in HTML/XHTML
Submitted by priitoorn on Tuesday, 8 August, 2006 - 14:18
The encoding autodetection should try to get the HTML or XHTML file's encoding from "Content-type" meta tag:

{meta http-equiv="Content-type" content="text/html; charset=windows-1257"}
{meta http-equiv="Content-type" content="text/html; charset=UTF-8"}
{meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1"}

and of course you should replace the { } with html tag brackets.
and btw. get rid of this bullshit "terminated request because of suspicious input data" error in this forum ...
FTP plugin: alternative ssh port #?
Submitted by njcatalyst on Wednesday, 9 August, 2006 - 19:36
Does anyone know how to connect to a nonstandard port for sftp? There is no port field in the dialog, and it is uncommon with ssh to write host:port (not to mention, it doesn't work in my situation).

-njc
Recommended plugins for Web Developer
Submitted by higgledy on Thursday, 10 August, 2006 - 14:07
Is there a list of best plugins for a web developer who uses XML, Java, JavaScript, VBScript and LotusScript? Or a list of starter plugins for newbies to JEdit?
Associating JEdit with file extensions in windows.
Submitted by nirnex on Friday, 11 August, 2006 - 16:33
I'm using JEdit in Windows XP and currently use it primarily for Python and some propriatary language work. What I'd like to be able to do is associate JEdit with certain file types so that they can be double-clicked to open into JEdit. I know I used to be able to do this in an older version of JEdit (4.1 I think) but can't seem to get it to work with 4.2 or 4.3. I also need to be able to set the association app with a custom memory heap as I often have to open very large files and keep my heap set for 1Gb. Any assistance on this is very appreciated.
beta jedit blocks package manager on ubuntu dapper
Submitted by jopy88 on Saturday, 12 August, 2006 - 12:18
I was interested in jedit sinds I was learning C++.
Now I have tryed to install it, it gave a lot of errors;

http://img3.freeimagehosting.net/image.php?3145fdea58.jpg
(this is in Dutch, maybe you could use it anyway)

Now I can't uninstall it, and I can't install it. I also can't install other packages or uninstall those, because my package manager (synaptic) is blocked by the package of jedit.

Please give me a solution, or I have to reinstall my whole OS :'(

Jopy
Is there a C++ class browser plugin?
Submitted by kernco on Monday, 14 August, 2006 - 23:12
I am using JEdit 4.2 final, and I was wondering if there is a C++ class browser plugin or something that will show an "outline" ala Eclipse. I'd prefer to not have to upgrade to a 4.3 version, since that would mean installing manually instead of through apt-get. Thanks.
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-
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