jEdit Community - Resources for users of the jEdit Text Editor
Archives
Formating XML tags - automatic indent of tags groups
Submitted by robotmonster on Sunday, 28 May, 2006 - 05:31
I'm looking to automaticly indent by tabs XML group tags. Also indent Javascript's "if", functions etc.
Is there such command/plugin/macro?
Content of text area invisible with jEdit4.3pre4 and Java 1.5.0_03
Submitted by kellner on Sunday, 28 May, 2006 - 08:27
After serious problems with 4.3pre2 (keyboard froze all the time), I upgraded my openSuSE 10.1 notebook to pre4. The keyboard doesn't seem to freeze anymore, but now the text area content has become invisible. I tried to change all sorts of Global options, but to no avail.

This repeatedly occurs in the activity log:

[error] AWT-EventQueue-0: Exception in thread "AWT-EventQueue-0"
[error] AWT-EventQueue-0: java.lang.AbstractMethodError: org.gjt.sp.jedit.buffer.FoldHandler.getFoldLevel(Lorg/gjt/sp/jedit/buffer/JEditBuffer;ILjavax/swing/text/Segment;)I
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.buffer.JEditBuffer.getFoldLevel(Unknown Source)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.buffer.JEditBuffer.isFoldStart(Unknown Source)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.Gutter.paintLine(Unknown Source)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.Gutter.paintComponent(Unknown Source)
[error] AWT-EventQueue-0: at javax.swing.JComponent.paint(JComponent.java:1003)
[error] AWT-EventQueue-0: at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)
[error] AWT-EventQueue-0: at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
[error] AWT-EventQueue-0: at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
[error] AWT-EventQueue-0: at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
[error] AWT-EventQueue-0: at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
[error] AWT-EventQueue-0: at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
[error] AWT-EventQueue-0: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Any advice?

(And: would it be possible to increase the width of the forum dropdown list on the submission page? On Linux Firefox 1.5.0.1, I can see only the introducing dash and the first two letters of a forum's name, which makes forum selection pure guesswork.)

Thanks in advance,
Improving the verilog mode
Submitted by wipet on Monday, 29 May, 2006 - 13:23
Hi, I am trying to improve the verilog mode to fit a coding guildline, I whant the "begin" and the "end" to be aligned. The problem is that I am not able to tell jedit to lineup the "end", I've trided by using :

"PROPERTY NAME="indentOpenBrackets" VALUE="begin" /"
"PROPERTY NAME="indentCloseBrackets" VALUE="end" /"

with no sucess.. can someone help?

(sorry for my bad english)

tx in advance
Using jedit with multiple clients
Submitted by Alain on Monday, 29 May, 2006 - 15:44
Hi,
I am using Jedit with Mandrake 9.0, installed on a specific PC. We use VNC to connect to the Linux account from other Pc's (Windows PC's). Suppose we are 2 clients connecting to the same linux account (same login), but working on different KDE desktops (possible with VNC). Then, the first client runs Jedit --> it works fine. But the second client cannot open the Jedit window on its own PC. Instead, the window is opened on the first client terminal...
Is there some parameter to set or configuration that could help ??
Thanks
Questions on the Console and Project Viewer plug-ins
Submitted by technel on Tuesday, 30 May, 2006 - 04:10
Hello,

I am using jEdit for Ruby on Rails development. Code completion, abbreviations, etc. work well, but I am still having some issues.

First, when I run a generator that finds duplicate files, it asks for user input as to whether or not to overwrite the files. In the regular Windows command prompt, this works fine, but in the jEdit console, it just shows it as "Working..." and doesn't ask if you want to overwrite.

Second, when you run the WEBrick server, you must leave the console window open. Is it possible to create a macro to create a new floating instance of Console and run the required command ("ruby script\server")?

Third, when I use a generator, it creates a lot of files. I use them quite frequently, and it can sometimes be annoying to have to go to re-import files every time a file is created outside of jEdit. Is it possible to have jEdit monitor the directory and auto-import newly created files, even when jEdit is open?


Thanks!
6502 assembly edit mode (assembly-6502.xml v0.1 by Aaron Forrest)
Submitted by aarfo on Wednesday, 31 May, 2006 - 01:46
Edit mode for 6502 assembly language, with highlighting for XASM assembler directives
Be sure to add the following line to your modes/catalog file
<MODE NAME="assembly-6502" FILE="assembly-6502.xml" FILE_NAME_GLOB="*.asm" />
PHP Project error
Submitted by metric152 on Wednesday, 31 May, 2006 - 21:30
I received a new updated today for the Project Viewer plug-in. Once I restarted jEdit I received the error
PHP Project
Your project is in an invalid file format. You have to refresh the project.

I tried moving jar's in and out of the main program folder until the error stopped. Once i figured out which one it was (PHPParser) I removed the PHPParserPlugin folder from ~./jedit/PHPParserPlugin directory and let jEdit recreate it. That solved the problem for me.

If anyone else runs into this error I hope it will help.
syntax highlighting for java
Submitted by newjedit on Thursday, 1 June, 2006 - 02:48
when we are installing Jedit, is there any way to change it so that it highlights keyword/classes from the Swing... like JFrame, JButton etc...
right now it doesn't highlight.
FTP 0.7.7 upload problem
Submitted by jesseainskeep on Thursday, 1 June, 2006 - 16:54
The new ftp got rid of the connection pool problem, so far, but it seems to have a new one. When ever it uploads, its got this message about changing the file permissions I think, something about read-only and a Unix server.

Every time, you have to click yes, which is a pain, but livable.

But who I have hosting through, has turned off the ability to change the permissions through FTP, so it gives an error and wont upload. If I switch other to another server, that I can change the permissions, I don’t seem to have the same problem.

Is there anyway around this? Or am I doing something wrong.

Besides that, the new FTP seems to work really good.
jEdit changes owner/group when saving (on a windows machine editing a textfile on a linux (centos) machine with samba)
Submitted by Broolio on Thursday, 1 June, 2006 - 21:08
I open a file that resides on a linux machine with jEdit on a windows machine through samba. When i save the file, all goes well, ACCEPT that the group/owner is changed to root.

i tried switching the 'two step save' off, i tried creating a fixes mapping (Z:) to the shared folder. I tried installing version 4.1. Whatever i do, when i save a file, it changes the group/owner.

i am about to give it up.. is it a samba setting? I reccon i have root access through samba or somethin.. any1 1 idea?
wildcard to find text in *.h and *.cpp
Submitted by ellers on Thursday, 1 June, 2006 - 21:24
Hello,

I want to find/replace in *.h and *.cpp files.

In the Find dialog's wildcard section I tried a bunch of variations, like

*.h,*.cpp
*.(h|cpp)

no luck - all result in "no files found" (and there are plenty of both).

I'm probably one character away from getting the regex right.

Any tips?
Thanks!
Mac OS Plugin Fails on Intel Mac
Submitted by eeverman on Thursday, 1 June, 2006 - 22:21
I have:
JEdit 4.2 final
Mac OS Plugin 3.0
JKD 1.5 (current)
OS X 10.4 (current)
Intel MacBook Pro

I ran updates on my plugins and the Mac OS plugin stopped working:

=============== Plugin Error ====================
MacOS.jar:
Cannot start java.lang.NoSuchMethodError: com.apple.eawt.Application.addApplicationListener(Lcom/apple/eawt/ApplicationListener;)V
Try updating to a newer version of the plugin
===========================================

I don't see a newer version of this plugin listed anywhere and it *was* working before. I don't remember if this was one of the plugins updated when I ran the update.

Can anyone confirm this plugin working on a similar intel Mac setup? Has anyone seen this issue?

Thanks,

--ee
Lookbehind regex?
Submitted by Full name on Friday, 2 June, 2006 - 06:54
Can I use lookbehind ( http://www.regular-expressions.info/lookaround.html ) in jEdit? The lookbehind syntax ( (?<!a)b ) gives an regex error and the manual doesn't mention it so I'm guessing jEdit doesn't support it. Either that or it's using some undocumented syntax I'm not aware of.
Work with FTP
Submitted by maksud on Friday, 2 June, 2006 - 11:24
Is it possible to connect to ftp using jEdit, if I'm under proxy? I cannot see place where I can fill my FTP proxy settings.

Maksud.
Newbie ? on JCompiler
Submitted by rray on Friday, 2 June, 2006 - 14:41
Guys/Gals:

I am very new to JEdit. I am using the tool to work with JDK1.5. I have install the JCompile pulgin. When I try to compile the source code, I receive the following exception involving the BeanShell Error Dialog box.

java.lang.NoSuchMethodError: console.Console.setShell(Lconsole/Shell;)V
at jcompiler.JCompilerPlugin.executeCommand(JCompilerPlugin.java:106)
at java.awt.EventDispatchThread.run(Unknown Source)


Is there something I have not done?

Thank you for any words of advice.

Russ
Newbie ? on Console Compile
Submitted by rray on Friday, 2 June, 2006 - 14:48
I am new to JEdit. I am using the latest version of JEdit-jEdit 4.3pre4. When I use the console to compile my source code, I see the following in the system window: javac -classpath "$CLASSPATH;C:\jdk50Study\src\access" -sourcepath "C:\jdk50Study\src\access" -g -deprecation -encoding Cp1252 "C:\jdk50Study\src\access\Mini.java" However, when the JDK runs the command, I see the follwoing error: java.lang.RuntimeException: Unrecognized command: javac -classpath <.... I left this long list out> Can anyone shed some light on this issue for me. I really need to get JEdit working....... Thank you for any words of advice. Russ
PHPParser : abstract class parsed in structure browser, but not interface?
Submitted by Baldurien on Friday, 2 June, 2006 - 20:49
Hi,

I would like to know if it was normal (or planned) that the structure browser does not show the structure of file containing interface ?

if I have this :

class X {
function f() {}
}

It works. But I have an interface just after :

interface Y {
function f();
}

It fails ("not parsed")

Since it seems to be bound to the folding model, I suppose the interface does not create a structure? Also, the folding behave in a strange way : (+ denote a fold)

+ class X {
|+ function foo() {
||
|| }
|| function poo() {
||
|| }
}

Note : I also had this exception :

[debug] WorkThread: Running in work thread: [id=870,run=sidekick.SideKick$ParseRequest@6a60d5]
[error] WorkThread: Exception in work thread:
[error] WorkThread: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
[error] WorkThread: at org.gjt.sp.jedit.buffer.JEditBuffer.getLineStartOffset(JEditBuffer.java:327)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildNode(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildChildNodes(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildNode(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildChildNodes(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.parse(Unknown Source)
[error] WorkThread: at sidekick.SideKick$ParseRequest.run(SideKick.java:406)
[error] WorkThread: at org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:194)
[error] WorkThread: at org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:161)
[error] WorkThread: at org.gjt.sp.util.WorkThread.run(WorkThread.java:135)

(anyway I can't reproduce the error)
Console not parsing compile errors from AntFarm
Submitted by brackeen on Saturday, 3 June, 2006 - 22:32
I'm compiling Java source files from Ant build scripts using AntFarm. Console doesn't seem to parse javac's output - compile errors are shown in the console but not in the ErrorList.

Using javac directly in the Console works: compile errors correctly appear in the ErrorList.

A bug in one of the plugins? Or something else?

Java 1.6.0-beta2-b86
jEdit 4.3pre4
AntFarm 1.5.3
Console 4.2.6.2
TomcatSwitch
Submitted by ccapeng on Monday, 5 June, 2006 - 05:29
Does TomcatSwitch plugin support Tomcat 5.0?
Bracket Matching
Submitted by fh on Tuesday, 6 June, 2006 - 09:27
How can I switch off the bracket matching feature, so that brackets in all syntax tokens are considered.
User login
Browse archives
« May 2006 »
MoTuWeThFrSaSu
4
5
13
14
17
26
27
 
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