jEdit Community - Resources for users of the jEdit Text Editor
Archives
Resize Frame Using Keyboard?
Submitted by seani on Friday, 5 November, 2004 - 09:52
The Title says is all really; is there a way to interactively resize a frame using keyboard shortcuts.

In Brief for example, you could:

1) Press ALT-R followed by a direction key. This would select the frame edge to resize

2) Use the direction keys to interactively resize

3) Press ENTER to set the size permanently.


Failing this, is there a method to temporarily toggle the current frame to full size. Again, in Brief, I had ALT-Z bound to toggle-zoom.
Extending EditPlugin
Submitted by Anonymous on Friday, 5 November, 2004 - 17:17
Hi. How can I import the class "org.gjt.sp.jedit.EditPlugin" for the plugin core class?
javac doesn't seem to find it.

Using ANT is compulsory or I can do everything manually?

Thanx in advance,
Mik
jEdit on z/OS
Submitted by clintolson on Friday, 5 November, 2004 - 19:28
I trying to run jedit on z/OS (IBM mainframe) with Unix System Services with the following JVM: java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1) Classic VM (build 1.3.1, J2RE 1.3.1 IBM OS/390 Persistent Reusable VM build cm131s-20040117 (JIT enabled: jitc)) I was able to install jedit (java -jar jedit42install.jar) just fine. Unfortunately, when I start jedit there seems to be a problem reading jedit config files, specifically XML files. I get errors like this: [error] ActionSet: jar:file:/u/act026/tools/jedit/jedit.jar!/org/gjt/sp/jedit/actions.xml:1: expected character (found "s") (expected "<") [error] DockableWindowManager: jar:file:/u/act026/tools/jedit/jedit.jar!/org/gjt/sp/jedit/dockables.xml:1: expected character (found "s") (expected "<") [error] ServiceManager: jar:file:/u/act026/tools/jedit/jedit.jar!/org/gjt/sp/jedit/services.xml:1: expected character (found "s") (expected "<") [error] jEdit: /u/act026/tools/jedit/modes/catalog:1: expected character (found "s") (expected "<") jedit will start but it will be unusable because none of its actions are registered correctly. Here is what I get when I select the Global Options tool bar icon: [warning] EditAction$Wrapper: Unknown action: global-options Any and all suggestions would be welcome (sorry about the formatting, yikes), thanks!
Print Preview?
Submitted by di97mnu on Friday, 5 November, 2004 - 20:39
Hi!
Is there a Plugin to do a Print Preview??

//Marcus
Print Preview?
Submitted by di97mnu on Friday, 5 November, 2004 - 20:40
Hi!
Is there a Plugin to do a Print Preview??

//Marcus
Calling an external tool
Submitted by WalterGallegos on Friday, 5 November, 2004 - 21:12
I'm new in jEdit,
Before surfing all helps, two questions
1/
what is the correct way to call an external tool as a synthetiser, compiler or assembler and capture the tool's output into jEdit ?

2/
Can I jump to an error line from captured output ?

Walter.
How to use mysql in macro?
Submitted by AndreJRenard on Saturday, 6 November, 2004 - 04:39
I would like to address a mysql database in a macro:
I put the connector file (mysql-connector-java-3.0.15-ga-bin.jar) in the .jedit/jars directory and used the following statements:

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
...
Class.forName("com.mysql.jdbc.Driver");
...
con = DriverManager.getConnection("jdbc:mysql://" + url + "/" + db, login, password);

But I got the error message:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
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.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:915)
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.Interpreter.eval(Interpreter.java:641)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:355)
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:990)
at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:417)
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$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)

What should I do?
Loading the plugin
Submitted by Anonymous on Saturday, 6 November, 2004 - 14:13
Hi,
I'm doing a plugin extending class JFrame. I have compiled and archived my files. Later I have put the archive inside directory jEdit/jars. From the jedit Plugin Manager I see that my plugin has been loaded but it's not visible in the application menu!

What could be the problem?
How can I debug other problems?

Thanx in advance,
Mik
brand-spanking newbie needs help.
Submitted by neurotrash on Sunday, 7 November, 2004 - 00:36
Will some generous soul tell me how to download the ruby edit mode? I press the download link and I see what to my ignorant eyes is gobbledygook, sans instructions. So?&Huh?etc.
HTML macro
Submitted by Anonymous on Sunday, 7 November, 2004 - 09:13
Hello,

I'm trying to write a macro, that when I select text it adds the tag to that selected text. I have no problem with making that macro. But I do have a problem when I want to make a (un)orded list. I don't know how I have to search for the line ends (/n) in selected text and add text to for every list item.

Can anybody give a hint how I can do that? BTW I don't no much about beanshell and java

Thnx,

Sjmielh
Multiple folding modes at once?
Submitted by malyvelky on Sunday, 7 November, 2004 - 18:08
Hi,

I do C++ programming and I'd like to improve the editing experience by getting as much as possible out of code folding.
Basically, I want 3 folding modes at once: fold code between { and }, fold comments, and sometimes explicit fold. How to do it? Thanks! /M. Velky
plugin startup
Submitted by Anonymous on Monday, 8 November, 2004 - 12:14
Hi,
Can a plugin be an extension of swing.JFrame or it must be an axtension of JPanel?

Thanks,
young developer
Default encoding setting for each Sessions (in sessions plugin)
Submitted by Anonymous on Monday, 8 November, 2004 - 13:10
This would be great feature for people working with different encodings. They could set default encoding for each session (project) to load files with.
Anytime I reload session, it loads with default "Global" encoding instead of last used encoding Sad
Thanks for any help.
Window can't be resized / moved
Submitted by Anonymous on Monday, 8 November, 2004 - 15:41
Suddenly i have a strange behaviour. The main jEdit window can not be resized anymore. It has allways the maximum size (screen size - WinTaskbar). I.E. i click the toggle icon for maximize/default-size but nothing happens. It still occupies all of the screen. Interestingly jEdit start up with the maximized window. Minimizing the window, so that only the taskbar icon is visible works ok.

Unfortunately I don't know what has changed. A colleague of mine worked on my PC for just one day and now i have the maximum window effect Sad

jEdit 4.2final, java 1.4.2_03, windows2000 SP4

Can anyone help?
Source Control & VSS
Submitted by tct592 on Monday, 8 November, 2004 - 17:29
Can't get the plugin to work, have tried downloading from site and through JEdit. I have updated the properties file in the jar file, but am getting the following error:

MSVisualSourceSafeImpl - is not in the working folder of the specified VSS Projects - set projects in the VSSIntegration.

When you download thru plugin manager you just get the jar file, I have downloaded the full zip file but have no idea where to put the above class file.

Any help would be greatly appreicated.
Search Replace Multiple Lines With Option To Ignore Whitespace
Submitted by Anonymous on Wednesday, 10 November, 2004 - 06:23
For people who get stuck doing search/replace in HTML oftentimes, what you are searching for is multiple lines of text. Also, you tend to want to replace with multiple lines of text. Here is an example:

Search:
<table width="100%">
<tr><td>
Hello World
</tr></td>
</table>

Replace:
<table width="100%" class="somestyle">
<tr><td class="hello">
Hello
</tr></td>
<tr><td class="world">
World
</tr></td>
</table>

In other words, instead of using a text field, an option to use a text area for multiple lines would be great.

Furthermore, an option to ignore whitespace differences in the the search string would be great!. For example these would both match when I searched for Hello World!:

Search Matches:
Hello Wo
rld

Search Matches:
Hello World

You could of course use a regular expression for this. However, when search/replacing large amounts of multi-line text with HTML and other weird characters, escaping all the special characters for a regular expression usage would really suck and take a long time. A simple "ignore whitespace difference" checkbox would be much nicer.

My two cents!

Mike
Template plugin: ignore more than three subsequent ##
Submitted by Anonymous on Wednesday, 10 November, 2004 - 11:16
Hi All,

I'm a Perl developer and use ########## lines to cut my code into pieces or make things more visible.

Unfortunately, the template plugin rips out these lines as they start with ## and are therefore a vm comment.

It would thus be cool to have a directive to not parse some characters.

E.g.:

#noparse=#####################################################################

Thanks,
Sven
2 questions about the configuration
Submitted by Sandal Tolk on Wednesday, 10 November, 2004 - 13:53
Hi!
I just installed jEdit and I'm configuring it at the moment.
I already found all options i wanted, expect the option to turn of this vertical blue line in the middle of the text editor window.
That it is possible to turn it of is seen here: http://jedit.org/index.php?page=screenshot&image=29 but how do I do it? I cant find the Option Sad
About C++ mode
Submitted by Anonymous on Wednesday, 10 November, 2004 - 14:49
Hello, Is it possible to make jEdit indent lines more like Emacs's cc-mode? I mean when I write something like this for example: cout << "some very long story..." and continue to next row with << someVariable << endl; Emacs indents <<-marks to same column but jEdit doesn't. In my opinion that looks bad. This is just one example and there are other cases too. I wouldn't like to change back to Emacs because of this since jEdit is so much easier to use and I like the Secure FTP option.
i can't have the '^' character, why ?
Submitted by Anonymous on Wednesday, 10 November, 2004 - 17:02
I can't use the character '^'.
For example in this case: var = truc ^ chose; When i hit the keyboard (twice, as for other editor) there is nothing.
User login
Browse archives
« November 2004 »
MoTuWeThFrSaSu
9
16
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   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