jEdit Community - Resources for users of the jEdit Text Editor
Archives
No tildes or accent characters
Submitted by Anonymous on Sunday, 4 April, 2004 - 07:21
Hi All,

jEdit has worked well so far for me, but there's a problem I've recently noticed. When I try to enter Spanish characters such as ñ, accented characters such as áéíóú, or inverse question/exclamation marks, it replaces them with squares. Changing the font doesn't do anything.

I'm running jEdit 4.1final, j2sdk-1.4.2.04, and XFree86 4. Also, I use xmodmap's 'questiondown' 'exclaimdown' and 'dead_acute' maps, although this is irrelevant, as emacs (and the console 'nano') uses these characters fine.

I don't speak spanish, but I'm learning how to, so it's not a massive concern /just yet/...
Can't install jEdit on WinXP Pro
Submitted by critter on Sunday, 4 April, 2004 - 11:02
Please, help me. I have downloaded both versions of jEdit 4.1 and jEdit 4.2pre11, but can't install it.

I have installed this Java version:

e:\windows\system32\java.exe -showversion
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)



Errors for jEdit 4.1:

F:\Temp>e:\windows\system32\java.exe -jar jedit41install.jar

Exception in thread "main" java.lang.Error: can't load javax.swing.plaf.metal.MetalLookAndFeel
at javax.swing.UIManager.initializeDefaultLAF(Unknown Source)
at javax.swing.UIManager.initialize(Unknown Source)
at javax.swing.UIManager.maybeInitialize(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.(Unknown Source)
at javax.swing.JPanel.(Unknown Source)
at javax.swing.JRootPane.createGlassPane(Unknown Source)
at javax.swing.JRootPane.(Unknown Source)
at javax.swing.JFrame.createRootPane(Unknown Source)
at javax.swing.JFrame.frameInit(Unknown Source)
at javax.swing.JFrame.(Unknown Source)
at installer.SwingInstall.(Unknown Source)
at installer.Install.main(Unknown Source)

Here the execution stops and whait for the input. When I press Ctrl-Break, it print the big dump.



Errors for jEdit 4.2 pre 11:

F:\Temp>e:\windows\system32\java.exe -jar f:\temp\jedit42pre11install.jar

Exception in thread "main" java.lang.Error: can't load javax.swing.plaf.metal.MetalLookAndFeel
at javax.swing.UIManager.initializeDefaultLAF(Unknown Source)
at javax.swing.UIManager.initialize(Unknown Source)
at javax.swing.UIManager.maybeInitialize(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.(Unknown Source)
at javax.swing.JPanel.(Unknown Source)
at javax.swing.JRootPane.createGlassPane(Unknown Source)
at javax.swing.JRootPane.(Unknown Source)
at javax.swing.JFrame.createRootPane(Unknown Source)
at javax.swing.JFrame.frameInit(Unknown Source)
at javax.swing.JFrame.(Unknown Source)
at installer.SwingInstall.(SwingInstall.java:29)
at installer.Install.main(Install.java:37)



How can I install jEdit? I'm the newbie in Java and I don't know how to work with it.
newbie help please
Submitted by xlander on Sunday, 4 April, 2004 - 13:57
I am trying to edit the default.ini for dues ex 2, but I can't seam to get anything but a beep when I try to edit it. I know I'm a rookie but the last time I edited something like this I was able to use notepad. Unfortunately this one will not let me change anything through notepad. So I guess what I'm looking for is basic jedit instructions to change a few values ( like 1.25 to 0.0 or .75 to 4.75). I tried reading the help file but I am not a programmer, so I don't understand half of what its telling me to do.
thanks, the newbie
Where to get the Icon Pack from Windows Screenshot No.1
Submitted by Anonymous on Sunday, 4 April, 2004 - 17:00
Hi Guys i was wondering, if someone could tell me where to get the iconpack from the screenshot page, the first shot in the windows section.

btw, pretty good job, i like that editor much.
debian - jedit upgrade
Submitted by Anonymous on Sunday, 4 April, 2004 - 21:28
is there anyway to have debain install the latest developement version of jedit with an apt-get update?
save change file owner
Submitted by FelhoBacsi on Monday, 5 April, 2004 - 10:03
Hi!

I'm using jedit 4.2pre9. When I save a file the owner of the file is being changed.
I read that two stage save cause this, and I can turn off this behviour in Loading and saving pane at global options, but I don't have this menu item there.
Where can I turn off?

Thx,
Felho
need help setting up Jane and CodeAid for Java code completion
Submitted by Martin Honnen on Monday, 5 April, 2004 - 17:56
I have JEdit 4.1 here on Windows XP and would like to use CodeAid for code completion when editing Java source files. I am not sure how to set up a libary with Jane so that the SUN SDK/JRE API is known to CodeAid.
I have set up one library named jsdk14 with Jane with the following paths:
Source Path: C:\Program Files\Java\j2sdk1.4.1_01\src.zip
Class Path: C:\Program Files\Java\j2sdk1.4.1_01\jre\lib\rt.jar
Doc Path: D:\docs\Java\j2sdk1.4.1\docs\api

Unfornunately the documentation is not very detailed about what for instance is the right thing (directory or index.html or ?) to point the doc path to.

When I now try a simple Java program like

public class Test20040405 {
public static void main (String[] args) {
String s = "Kibology for all.";
System.out.println(s.

and select Plugins->CodeAid->Complete I get a dialog window with a BeanShell error:

java.lang.NullPointerException

at codeaid.popup.ContextPopup.updateY(ContextPopup.java:231)

at codeaid.popup.ContextPopup.refresh(ContextPopup.java:164)

at codeaid.popup.ContextPopup.removeCompletionContext(ContextPopup.java:131)

at codeaid.popup.ContextPopup.addCompletionContext(ContextPopup.java:100)

at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at bsh.Reflect.invokeMethod(Unknown Source)

at bsh.Reflect.invokeObjectMethod(Unknown Source)

at bsh.BSHPrimarySuffix.doName(Unknown Source)

at bsh.BSHPrimarySuffix.doSuffix(Unknown Source)

at bsh.BSHPrimaryExpression.eval(Unknown Source)

at bsh.BSHBlock.eval(Unknown Source)

at bsh.BshMethod.invokeDeclaredMethod(Unknown Source)

at bsh.BshMethod.invoke(Unknown Source)

at org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)

at org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown Source)

at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(Unknown Source)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$ForwardActionEvents.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$MouseInputHandler.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.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)


Any hints on what could be wrong and how to properly set up Jane with a library so that the SUN JDK/JRE classes are known to CodeAid for code completion are appreciated.


Martin
Getting 4.1 color scheme
Submitted by Anonymous on Tuesday, 6 April, 2004 - 00:45
I really liked the syntax highlighting for java in JEdit 4.1. Version 4.2 seems to be a lot more colorful and I just cant get use to it. Is there an easy option to turn 4.2 highlighting to look like 4.1? I tried using global options but I just cant get it right.

Thanks,
Smart Cut/Copy/Paste Macros (SmartCopyCutPasteLine1.0.zip v1.0 by Robin Luiten)
Submitted by rluiten on Tuesday, 6 April, 2004 - 04:59
Smart Copy/Cut/Paste Text macro for JEdit (v1.0 rerelease 2004/04/06)

A set of three simple bean shell macros that are designed to replace the built in copy/cut/paste functions in JEdit. They basically allow for treating the current line as selected if there is no selection. Detailed behaviour in a html file in the zip. I map ctrl-c/ctrl-x/ctrl-v and the toolbar buttons to these.

The three macros are in a zip file so that all 3 travel together as they are only useful as a set.

Tested on JEdit 4.1pre2 4.1pre7
There is no change to code from previous release on JEdit community site
Taskbar macro (html_taskbar.bsh v1 by Jerome)
Submitted by jerome on Tuesday, 6 April, 2004 - 07:57
This macro illustrates the creation of a simple taskbar. In this example, the taskbar allows easy editing of HTML documents by inserting some tags, but it will be easily customized.
Auto-Reload Feature
Submitted by Anonymous on Tuesday, 6 April, 2004 - 09:08
It'd be really nice if a future version of jedit incorporated the 'auto-reload' feature found in e.g. textpad. I've found this really useful as a poor man's tail -f substitute.
Add Saxan Support to XSLT Plugin
Submitted by Anonymous on Tuesday, 6 April, 2004 - 14:33
Hi-

Could Saxan support be added to the XSLT plugin? Currently, the XSLT plugin cannot support XSLT 2.0 b/c it is not using a 2.0 transform engine.

Anyone else out there itching to get XSLT 2.0 working via JEdit?

Thanks,

Eric Everman

(Note - I posted this to some other forum/mailing list, but I've lost track of my earlier post...)
Custom Code Completion
Submitted by Anonymous on Tuesday, 6 April, 2004 - 23:27
I'm using jedit to edit files for languages not predefined in jedit (FlagShip and xHarbour).

I would like to put two things working for this two languages (without developing new plugins): code completion and something like Delphi and VB IDE's do, showing a ballon with the parameters of the function i'm writing at that moment.

Is there any way to put jedit making these two things. For what I saw, only with better known languages as C and JAVA.

Thanks
tools.jar & JCompiler
Submitted by rharlos on Wednesday, 7 April, 2004 - 21:50
I'm a relatively new JEdit user and I enjoy it very much. One point I'm struggling with is the visibility of tools.jar for the JCompiler plug-in.

I know I can just copy it into the jedit/jars folder (because I did this on a friends laptop just to get it working) but i really, REALLY want to solve this problem using JAVA_HOME and/or CLASSPATH.

When I installed the SDK (1.4.02), I opted to allow it to install the public JRE as well (was this my bad?). Without having set any environment variables (did I mention I'm using Windows XP Pro?), the plug-in reports that it can't find tools.jar ... that my java.home is the public install (c:\program files\java\j2re1.4.2_04\bin) ... the the tools.jar file is usually found (relative to java.home) in ..\lib, so...

I've tried creating a CLASSPATH env var that points specifically to the tools.jar in the SDK/lib directory... I've tried adding a JAVA_HOME env var that points to the SDK's \bin directory, and to the actual root/home directory... none of these things seems to work.

I feel as if I'm going to HAVE to copy tools.jar into jedit/jar in order to get this to work but I can't help but wonder if I'm just overlooking some simple step/idea that would allow me to get this working WITHOUT having to do the copy.

Any help much appreciated!

Richard
Auto-tab
Submitted by rbrown on Thursday, 8 April, 2004 - 09:07
I've just moved to jedit from Textpad. I've been trying to find something that runs under Linux that is close enough to Textpad that I can use it. jedit appears to do most of the things that I want, however there is one thing that is really annoying me in the way that jedit works. Note: I'm using jedit primarily to develop in PHP.

Basically, it's the auto-tabbing functionality. My style of tabbing is to use tabs for indentation and spaces for alignment. For example, if I'm writing a line that declares an array with some elements, I want to put each element of the array onto a seperate line to make the code more readable. I want the elements to align vertically for easy reading. Each of these lines is tabbed to the same level as the first line, and then aligned from there with spaces. This means that anyone can view the code with their preferred tab size and everything still lines up as originally intended. If spaces or tabes are used to both align and indent, one of these conditions is not met (if you only use spaces people can't view the code in their favoured tab size: if you only use tabs things don't align in tab sizes other than the one used by the author).

Anyway, the upshot is that I end up with lines that start with a number of tabs followed by a number of spaces. The problem is that in jedit when I press return to start a new line, jedit converts most of the spaces into tabs, meaning I have to delete them and add the spaces I want manually. To make matters worse, if I press tab jedit does it again, and created the extra tabs that I don't want. Textpad would simply repeat the same tabbing as the previous line, which is exactly what I want.

I've looked through the options of jedit and can find no option to turn this off. Does anyone know if one, and if not how hard would it be to add one?

Oh, I'm using jedit 4.1 final.

Thanks a lot!
JavaScript dot
Submitted by Anonymous on Thursday, 8 April, 2004 - 12:55
Hi, how can I write JavaScript code with JEdit, so when I write 'window.' for example, a list of properties of 'window' appear?
FTP plug-in not saving favorites
Submitted by MjH on Thursday, 8 April, 2004 - 18:50
I've noticed that the FTP plugin (v0.7.2) in 4.2pre11 is not saving favorites (on two different machines). What information is required to help determine if this is an actual bug or some configuration (or other) problem in my installation?


Maury...
How do I modify the classpath of a macro?
Submitted by Anonymous on Friday, 9 April, 2004 - 11:08
I want to use a custom class to interpret a selected message (byte array) and create a new buffer with a nicely formatted, understandable, version of the message. I cant use the addClassPath() method of beanshell, I cant seem to get the instance of the Interpreter class, and I cant find the loadJarClasses.bsh mentioned in the jEdit manual.

Can anybody lend a hand?

Thanks
How do I modify the classpath of a macro?
Submitted by Anonymous on Friday, 9 April, 2004 - 11:09
I want to use a custom class to interpret a selected message (byte array) and create a new buffer with a nicely formatted, understandable, version of the message. I cant use the addClassPath() method of beanshell, I cant seem to get the instance of the Interpreter class, and I cant find the loadJarClasses.bsh mentioned in the jEdit manual.

Can anybody lend a hand?

Thanks
Simple (PHP)-Code Analyzer
Submitted by Anonymous on Friday, 9 April, 2004 - 16:01
I would like to see one nice feature in jEdit for PHP-Mode (or generally in all possible for other people). Just a simple code analyzer. Didn´t found it as plugin, yet. It should parse the current buffer for i.e. uninitialized variables (assigning values before initializing it), unused variables (used only on time), scanning statements (wrong operators = instead of == or =< instead of <= and so on), check line ends on : instead of ; (this happens often to "fast writers" like me Smiling ) resulting in "parse error" and listing of all functions including parameters for quick navigation (although it can be done by using folding smartly). This is the only big missing point for me against one special commercial PHP-IDE and I won´t miss jEdit anymore after two years and waiting impatiently for 4.2final. Of course, I could setup a PHP-Script for this but programmers are some kind of lazy - you know what I mean... Eye-wink
User login
Browse archives
« April 2004 »
MoTuWeThFrSaSu
  4
 
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