jEdit Community - Resources for users of the jEdit Text Editor
Archives
Bracket matching in syntax highlighting
Submitted by assaph on Wednesday, 12 January, 2005 - 01:31
Hi,

To support Ruby features of code-within-strings, will it be possible to have bracket matching in the syntax highlighting?

e.g.

there's no problem with:
"some text #{ embedded code evaled to string}"
but this will confuse the parser:
"some text #{ "#{code in string within code}" if condition }"
the parser will terminate the first opening bracket with the first closing one, regardless of the nested scope.

Cheers and thanks for a great editor,
Assaph
Folding Lines ?
Submitted by Anonymous on Wednesday, 12 January, 2005 - 18:05
How do i enable the lines in the text area between { and } in this screenshot: http://jedit.org/index.php?page=screenshot&image=29

Thanks in advance
I/O Error (Network is unreachable)
Submitted by Anonymous on Wednesday, 12 January, 2005 - 18:10
I can connect to the network to download the plugin list, etc.

However when I goto actually install a plug in, I get the error:

An I/O error occurred (Network is unreachable)

Please advise how to fix this problem. Java config issue maybe? Thanks. Log output below:

[message] jEdit: Startup complete [notice] jEdit: Loading edit mode /usr/local/share/jedit/4.2/modes/text.xml [debug] EditBus: BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=Untitled-1 (/usr/share/java/)] [debug] EditBus: BufferUpdate[what=LOADED,view=null,source=Untitled-1 (/usr/share/java/)] [debug] EditBus: BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=jEdit-version.txt (http://www.jedit.org/)] [debug] EditBus: BufferUpdate[what=LOADED,view=null,source=jEdit-version.txt (http://www.jedit.org/)] [debug] WorkThread: Running in work thread: [id=5,run=org.gjt.sp.jedit.pluginmgr.PluginManager$2@1dcc4cd]

[error] Roster$Install: java.net.SocketException: Network is unreachable

[error] Roster$Install: at java.net.PlainSocketImpl.socketConnect(Native Method) [error] Roster$Install: at java.net.PlainSocketImpl.doConnect(Unknown Source) [error] Roster$Install: at java.net.PlainSocketImpl.connectToAddress(Unknown Source) [error] Roster$Install: at java.net.PlainSocketImpl.connect(Unknown Source) [error] Roster$Install: at java.net.Socket.connect(Unknown Source) [error] Roster$Install: at java.net.Socket.connect(Unknown Source) [error] Roster$Install: at sun.net.NetworkClient.doConnect(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.openServer(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.openServer(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.New(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.New(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.New(Unknown Source) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) [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) [error] Roster$Install: java.net.SocketException: Network is unreachable [error] Roster$Install: at java.net.PlainSocketImpl.socketConnect(Native Method) [error] Roster$Install: at java.net.PlainSocketImpl.doConnect(Unknown Source) [error] Roster$Install: at java.net.PlainSocketImpl.connectToAddress(Unknown Source) [error] Roster$Install: at java.net.PlainSocketImpl.connect(Unknown Source) [error] Roster$Install: at java.net.Socket.connect(Unknown Source) [error] Roster$Install: at java.net.Socket.connect(Unknown Source) [error] Roster$Install: at sun.net.NetworkClient.doConnect(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.openServer(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.openServer(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.New(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.New(Unknown Source) [error] Roster$Install: at sun.net.www.http.HttpClient.New(Unknown Source) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) [error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) [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)

Nuvola 1.0 based Icon Set (icons.zip v1.0 by mapo)
Submitted by mapo on Thursday, 13 January, 2005 - 13:01
Nuvola 1.0 (http://www.icon-king.com/) based Icon Set. See the README for installation instructions.
Redefining Control+R and Control+E
Submitted by Anonymous on Friday, 14 January, 2005 - 19:30
Is there anyway to redefine these shortcut keys? It won't let me in the global options > shortcuts menu.

Thanks
java.home problem
Submitted by di97mnu on Saturday, 15 January, 2005 - 23:39
Hi!
I have a problem. When i choose som "sub option" fron JCompiler plugin options I'll resive an error message that says something like: Cannot start jcompiler.JCompilerPlugins$ToolsJarNotFoundException
.
.
.
Your java.home is C:\Program Files\Java\jre1.5.0
.

why is my java.home referd to jre1.5.0 and not to my j2se install dir?

//Marcus
Minimize of last buffer close plugin
Submitted by Anonymous on Monday, 17 January, 2005 - 10:16
I used to like the feature of Programmer's File Editor whereby it would minimize when the last file was closed, so I quickly knocked up a plugin to do this in jEdit. I don't think it deserves a plugin of its own in the repository, but if someone wants to add it to a general purpose plugin, feel free. The support files are as basic as they can get, so I'll not include them here. The source is:
/*
 * MinOnClosePlugin.java
 * Copyright (C) 2005 Matt Plumtree
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

import org.gjt.sp.jedit.jEdit;
import org.gjt.sp.jedit.View;
import org.gjt.sp.jedit.EBMessage;
import org.gjt.sp.jedit.EBPlugin;
import org.gjt.sp.jedit.msg.BufferUpdate;
import java.awt.Frame;

/**
 * The MinOnClose plugin
 *
 * @author Matt Plumtree
 */
public class MinOnClosePlugin extends EBPlugin
{
	public void handleMessage(EBMessage message)
	{
		if (message instanceof BufferUpdate)
		{
			BufferUpdate bu = (BufferUpdate)message;

			if (bu.getWhat() == BufferUpdate.CLOSED)
			{
				View v = bu.getView();

				if (v != null && jEdit.getBufferCount() == 0)
				{
					// Minimize when last buffer closed.
					v.setExtendedState(Frame.ICONIFIED);
				}
			}
		}
	}
}
Organization against religious persecution http://www.har-tzion.com
Submitted by Billy Grand on Tuesday, 18 January, 2005 - 00:15
Organization against religious persecution http://www.har-tzion.com
jEdit GUI suddenly dis-proportional?!
Submitted by Anonymous on Tuesday, 18 January, 2005 - 14:13
All of a sudden the jEdit GUI under linux looks broken - fonts does not fit their boxes (some lists are undreadable because fonts are too big, others have too much space around them).

What can have happened? I don't remember doing anyting special except maybe messing around a bit with XF86Config ?
Mail quote
Submitted by weberjn on Tuesday, 18 January, 2005 - 15:19
It were nice to have text quote and unquote on selections:

example
Edit->Text->Quote
> example
Edit->Text->Unquote
example

Unquote is especially useful to restore a several times quoted mail text:

>>>> Please restore
>>>> this

Please restore
this


Thx,
Juergen
Auto folding?
Submitted by Anonymous on Wednesday, 19 January, 2005 - 03:50
Is there a way to get jEdit to automatically completely fold all files when they are loaded?

Thanks
Anyway to start another JEdit process
Submitted by interman on Thursday, 20 January, 2005 - 02:44
Hi, anyone know the way that I can start another Jedit process. If I do new view or run jedit in console, it will basically start another view, not seperate process. Any way I can start a seperate process for Jedit. I want to sepearte process because I handles two projects at the same time and I don't want all source code in two projects load up to one Jedit. It hard for me to find the file in each project
Perl Compatible Regular Expressions?
Submitted by Anonymous on Thursday, 20 January, 2005 - 13:11
Hi,

any chance to get Perl Compatible Regular Expressions in one of the next versions?
http://www.pcre.org/

Thanks.
SelectToMatchingTag.bsh (selectToMatchingTag.bsh v0.2 by Saimon Moore)
Submitted by saimonm on Thursday, 20 January, 2005 - 16:07
Selects all text between the current tag and the matching tag. (This requires the XML plugin.)
In fact code is slightly modified from the xml plugin action xml.XmlActions.matchTag.
So this could just be added to the xml plugin itself.
SideKick 0.3.2 bug
Submitted by Anonymous on Thursday, 20 January, 2005 - 16:51
I have this plugin set to "After keystroke wait" 1 sec.
Problem is, when I am editing line longer than screen size. When I am at the end of line, stop writing for 1 sec., it always move screen wiev to the begining of line. It is very annoying Sad((
right-to-left paragraph direction
Submitted by Anonymous on Thursday, 20 January, 2005 - 17:36
The possibility of changing paragraph direction from left-to-right to right-to-left will be a welcome addition for those of us who use jEdit for editing right-to-left languages like Hebrew and Arabic.
Hebrew vowel signs
Submitted by Anonymous on Thursday, 20 January, 2005 - 17:39
When Hebrew vowel signs are typed, extra spaces are inserted unnecessarily.
Error Using Console Plugin
Submitted by derb58 on Thursday, 20 January, 2005 - 21:59
I am new to this so please forgive me.
I am using Windows 2000 and Fedora Core 3 Linux with Jedit. In Linux I have no problems but in WIndows I have a problem with the console plugin.
I can compile the java file through the console plugin no problem but when i try to run the buffer I get this error in red.

java.lang.UnsupportedClassVersionError: HelloWorld (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main" Process java exited with code 1

Now if I run the class from an external command window in Win 2000 it runs fine. I am assuming I have a setting wrong or my Paths are set wrong. Can anyone help me with this. As I said I can do it all normally in Linux. Thanks for your help.
John V
Auto "un-indent" (for keywords)
Submitted by Anonymous on Friday, 21 January, 2005 - 01:49
See http://community.jedit.org/?q=node/view/1935

I'd like an automatic "un-indent" next lines feature based on keywords. (Like UltraEdit has)
e.g typing "ENDIF" will cause that line, and subsequent lines to be un-indented.
This will be handy for several programming languages that don't use C-like structures using brackets, instead just using keywords to enclose IF, FOR etc. statements.
using modes-xml in an other project
Submitted by Anonymous on Friday, 21 January, 2005 - 09:09
We develop an other java editor. Now we are using the mode-Files of jedit.
Is this ok for you?
Our Project is also under the GPL Eye-wink
CU

Christian Hennig
University of Rostock
User login
Browse archives
« January 2005 »
MoTuWeThFrSaSu
 
2
15
16
 
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   108249
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