jEdit Community - Resources for users of the jEdit Text Editor
Archives
CSS Plugin Help
Submitted by gkterry on Tuesday, 2 May, 2006 - 12:03
I am having some difficulty getting the CSS Editor Plugin to work. I am using the latest development version of jEdit on Win XP with Java 1.5 U6. When I attempt to add an element in the CSS editor, everything appears to work as expected (including the preview) until I click the Add button. Then nothing happens. This occurs whether I am creating a new element or attempting to modify a previously created element after parsing.

I have totally wiped out the user settings and the jEdit program several times. Once I installed the program with just the CSS Editor plugin with the same result. I've noticed that this doesn't work on 2 different computers.

Am I missing something? Thanks for the help!
DotComplete cannot parse Java 5.0 source
Submitted by TTAnimal on Tuesday, 2 May, 2006 - 12:19
Title says it all really. I get no DotComplete popups when editing code with @nnotations, or generics.

Will this be fixed????
Bug in JARClassLoader when loading directories as Resources
Submitted by ssaBrec on Wednesday, 3 May, 2006 - 18:46
Trying to retrieve a directory using:

URL url = class.getResource("org/foo/bar/definitions");
JarURLConnection connection = url.openConnection();

causes an IOException thrown by PluginResURLConnection.connect()

Perhaps the openConnection call shouldn't try to get getResourceAsStream ? Just let the caller validate the Connection's contents. Basically, right now, it seems that retrieving a directory and then iterating through its entries is impossible?
SWI Prolog
Submitted by vale on Saturday, 6 May, 2006 - 02:11
Hello,
I am new to JEdit and I was wondering if someone already have thought about integrating SWI prolog into JEdit or can help me with my starting problems:

First I edited modes/catalogs so the syntax highlightning works automatically with the file endings of my project, adjusted the prolog.xml for my needs and filled with additional keywords of swi-prolog. this worked quite well.

Then I tried the simple task to integrate the swi-shell into jedit by using the console plugin. So I started "swipl" in the System-console, which also starts the swi-prompt, but right after I get thrown out again with "ERROR: Stream user_input:8: Syntax error: Unexpected end of file". I guess there is a simple solution to this lying behind some adjustments of the console-plugin...

Further, I want to use the ErrorList-plugin to attach to swi (is this possible/usefull/hard, can it show the line of the error in the buffer) and make shortcuts to common prolog commands like "consult" aso.

Thanks for any help.

vale
Plugin to work with uneditable and editable regions in the code
Submitted by canelita on Sunday, 7 May, 2006 - 21:14
Do we have a plugin that allows me to have uneditable and editable regions in the code?
I need to lock some region in the code, so users cannot touch some code I have already generated.
Cheers
uneditable and editable regions in the code
Submitted by canelita on Monday, 8 May, 2006 - 12:48
I am not an expert with Jedit, so I dont know how basic this question is.

Do we have a plugin/feature that allows me to have uneditable and editable regions in the code?
I need to lock some region in the code, so users cannot touch some code I have already generated.
LilyTool in jEdit - unable to run lilypond
Submitted by zrlaszlo on Tuesday, 9 May, 2006 - 15:46
Hi.
I have just tried out jEdit with the LilyTool plugin. It is working very well.
However, my problem is that when I try to run lilypond from inside jEdit, I get the following error:


java.lang.NoSuchMethodError: console.Console.setShell(Ljava/lang/String;)V
at lilytool.LilyToolPlugin.runCommand(LilyToolPlugin.java:409)
at lilytool.LilyToolPlugin.runCommandOnBuffer(LilyToolPlugin.java:438)
at lilytool.LilyToolPlugin.runCommandOnBuffer(LilyToolPlugin.java:430)
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:149)
at bsh.Reflect.invokeStaticMethod(Reflect.java:100)
at bsh.Name.invokeMethod(Name.java:872)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHAssignment.eval(BSHAssignment.java:77)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
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:171)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2910)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)
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.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.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)

I am quite new to jEdit, so I could not figure out, what is wrong. Besides, I apologize for writing - there might have been someone else asking this question. I did a few searches but unfortunately I do not have the time crawl through the entire forum.
Thank you a lot for your help.
Jedit showing . characters
Submitted by kannan.ekanath on Wednesday, 10 May, 2006 - 13:18
In JEdit,
The editor is showing a "." instead of EOL character and a ":" whenever the word wrapping happens. Although sometimes desirable i want to TURN THIS feature off. Is there anyway i can do this?

I tried playing with the global options, buffer options and the forums but cudnt find something though.

Thanks,
Kannan
kannan.ekanath@gmail.com
Problem configuring jEdit
Submitted by ionial on Thursday, 11 May, 2006 - 00:17
Hi!
I've installed jEdit with few plugins and trying to use JExplorer.
I've ProjectViewer working OK , created new project with bunch of java files.

Then I wanted to see its model in JExplorer - but I have a feeling that it just doesn't parse the
files (the icon never changes).

What should I do to get JExplorer working?
Sincerely, Nick
Sort Lines (editplus style sort) (Sort.bsh v1.1 by Yuan Wang)
Submitted by p8er on Thursday, 11 May, 2006 - 07:35
Sort selected lines or whole buffer (when nothing is selected).
This is just similar to the sort function in Editplus 2.
Features:
  • Order - Either ascending order or descending order.
  • Starting column - Enter a column number from which the sorting operation begins. The text before this column number will be sorted when string after the column is the same. Enter an integer value great than or equals to 1.
  • Case sensitive - The case-sensitive comparison option.
  • Remove duplicates - Remove any duplicated line after the sorting option.
Sort Lines (editplus style sort)
Submitted by p8er on Thursday, 11 May, 2006 - 08:03
I wrote a macro to sort lines of selection or whole buffer.
After I finished it I found there is another sort lines macro here. (Oh! why I don't search it before write this one. )
But my macro is more powerful than the one exist, though the dialog of that one is more pretty. Sticking out tongue

------------------------------------
Here is the description of my macro, just like the sort tool in editplus 2.

Sort selected lines or whole buffer (when nothing is selected).
This is just similar to the sort function in Editplus 2.
Features:
  • Order - Either ascending order or descending order.
  • Starting column - Enter a column number from which the sorting operation begins. The text before this column number will be sorted when string after the column is the same. Enter an integer value great than or equals to 1.
  • Case sensitive - The case-sensitive comparison option.
  • Remove duplicates - Remove any duplicated line after the sorting option.
You can download it here -> download.
Or view the download page here -> download page.

Or you like the old one created by Pascal Dal Farra.
AntHelper - jbrowse.JBrowsePlugin not installed
Submitted by gomez_adams on Thursday, 11 May, 2006 - 13:39
I have a problem with the AntHelper plugin.

When starting jedit I see the following message.

AntHelper.jar
Requires version 1.4.4 or later of jbrowse.JBrowsePlugin, but jbrowse.JBrowsePlugin is not installed.

I have the jbrowse plugin and AntHelper installed from the update centre.

I am using java 1.5.0_06 and JEdit 4.2

Does anyone else have this problem?

I have tried installing multiple times and can reproduce this everytime. I have tried deleting my .jedit directory and reinstalling the plugins to make sure that there is no broken config or incorrect jar files, but this has not helped.
notification when dockable is displayed?
Submitted by achim on Friday, 12 May, 2006 - 09:27
Hallo,

I'd like to build a plugin, which is _only_ displayed as a dockable when
in the editor are special kinds of files open. For example files with
the extension '.xml'.

For the first call of my plugin I managed the discribed behavior by the
following code in my 'dockables.xml':

if (buffer.isUntitled() || (! (buffer.getName().endsWith("xml")))) {
Macros.message(view, "JaserReports-Plugin is only supporting files
with the extension '.xml'");
return;
}
else {
return new de.infokomGT.jjr.JasperReportsView(view, position);
}

But for all following calls to open the plugin, this code has no effect.

So I tried to be informed by the MessageBus, but it seams there is no
message send, when the DockableWindowManager opens or closes a window.

Any help is welcome.

Achim
"Keep Dialog" (check box) in Search & Replace: Settings
Submitted by ELockhart on Friday, 12 May, 2006 - 13:27
I have tried to find out what the "Keep Dialog" check box refers to in the JEdit "Help Files" but can not find any reference to it. Would someone please point me to the right spot (in the "Help Files") or explain what it means/how it works?

Thanks,
Eric
Auto save when jEdit window looses focus
Submitted by stellari on Friday, 12 May, 2006 - 16:55
I just download and installed jEdit for the first time and I'm still not completely used to it.
I'm looking for a way to auto save all the open files/buffers once the program looses focus.
I find it very handy when I modify several dependent scripts and then move to a different program to run it.
This is a feature I got used to have in MultiEdit.
I'm sure there must be a way to do it.
Thanks,
Franco
Auto save when jEdit window looses focus
Submitted by stellari on Friday, 12 May, 2006 - 18:02
This is a duplicate post... I mistakenly submitted the first one to the wrong forum... my fault.

I just download and installed jEdit for the first time and I'm still not completely used to it.
I'm looking for a way to auto save all the open files/buffers once the program looses focus.
I find it very handy when I modify several dependent scripts and then move to a different program to run it.
This is a feature I got used to have in MultiEdit.
I'm sure there must be a way to do it.
Thanks,
Franco
Model/Controller Switcher for RoR developers (toggle_model_controller.bsh v0.1 by vovan)
Submitted by vovan on Monday, 15 May, 2006 - 10:40
The macros opens a Controller file in the current buffer if you're editing a Model and vice versa.
Two Stage Save always asks for confirmation
Submitted by scaRFhogg on Tuesday, 16 May, 2006 - 16:01
I just installed pre4 and FTP plugin v 0.7.7
Now whenever I save a file to a FTP server a dialog is shown telling me the file is readonly and that it will be saved with two stage save. This is very annoying. The file is clearly *not* readonly, it is r/w for the ftp user. Any ideas why that happens?
unable to download plugins on newly installed jedit
Submitted by raw on Tuesday, 16 May, 2006 - 17:32
I recently installed jEdit 4.2 final on my Kubuntu 6.04 (Dapper Drake) system, with java version 1.4.2-02 installed. The first thing I wanted to do was to enable some plugins, but when trying to install them through plugin manager (any plugin, multiple number of tries), I get a message box saying "An I/O error occurred (Connection refused)" and the messages below in the console window in which I started jEdit. My system is connected to the internet through an router using NAT, with no restrictions, firewalls or proxies. I have no problems whatsover with my internet connection other than this. Any ideas? Messages in Console Window: [error] Roster$Install: java.net.ConnectException: Connection refused [error] Roster$Install: at java.net.PlainSocketImpl.socketConnect(Native Method) [error] Roster$Install: at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) [error] Roster$Install: at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) [error] Roster$Install: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) [error] Roster$Install: at java.net.Socket.connect(Socket.java:452) [error] Roster$Install: at java.net.Socket.connect(Socket.java:402) [error] Roster$Install: at sun.net.NetworkClient.doConnect(NetworkClient.java:139) [error] Roster$Install: at sun.net.www.http.HttpClient.openServer(HttpClient.java:402) [error] Roster$Install: at sun.net.www.http.HttpClient.openServer(HttpClient.java:618) [error] Roster$Install: at sun.net.www.http.HttpClient.(HttpClient.java:306) [error] Roster$Install: at sun.net.www.http.HttpClient.(HttpClient.java:267) [error] Roster$Install: at sun.net.www.http.HttpClient.New(HttpClient.java:339) [error] Roster$Install: at sun.net.www.http.HttpClient.New(HttpClient.java:320) [error] Roster$Install: at sun.net.www.http.HttpClient.New(HttpClient.java:315) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626) [error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.Roster$Install.download(Roster.java:417) [error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.Roster$Install.runInWorkThread(Roster.java:314) [error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.Roster.performOperationsInWorkThread(Roster.java:82) [error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.PluginManagerProgress$RosterThread.run(PluginManagerProgress.java:181)
solution for proper highlighting of script/style tags
Submitted by silverquick on Wednesday, 17 May, 2006 - 01:37
Hey all, I was always bothered by how SCRIPT and STYLE tags in HTML or PHP mode look kind of ugly because of how those modes have to delegate their contents to the right ruleset. This may have been discovered already but I've found a pretty simple solution. I'm not sure if I should release it to the files section though, as my mode files are pretty customized in other ways too (customized OCD style Smiling).

Basically, my new rules highlight any occurences of '<script' or '<style' as 'MARKUP', along with their matching closing tags, and delegate everything between them to a 'mediating' ruleset, which imports the rules from the TAGS ruleset (so any attributes of the style or script tag are highlighted properly), but adds a rule to delegate anything after '>' to either CSS mode or Javascript mode. Doesn't sound as simple as I thought. Smiling

Anyway, I can't get HTML to show up on this forum, so if you want to see what the rules look like in html.xml, look at this file:
http://www.flowingcreativity.net/jedit-better-rules.txt
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