jEdit Community - Resources for users of the jEdit Text Editor
Archives
jEdit as external editor for file manager
Submitted by Anonymous on Monday, 30 August, 2004 - 09:24
Hello!
What is error during to make an attempt to open file in jEdit from file manager on Windows 2000: "Could not find the main class. Program will exit." ???
FTP plugin problem
Submitted by sss4r on Monday, 30 August, 2004 - 18:31
Hello,

I've been attempting to get support on this problem for months, so I am respectfully requesting that anyone who knows anything about this issue to please respond.

I have been unable to get the FTP plugin to work properly (I've tried on 3 different machines) since 4.2pre9. As the plugin is critical to my workflow, I have stayed with 4.1final; however, now that 4.2final is out, I would really like to start using it (in fact, I need to because there are newer plugins I need to start using that require it).

Having said all that, here's my dilemma:

I start with a fresh installation of 4.2final. I install the FTP plugin, version 0.7.2. When I attempt to open from a secure server, I click "yes" or "always" to the remote host authentication dialogue. Immediately I get the following I/O error:

Cannot list directory: com.sshtools.j2ssh.transport.MessageStoreEOFException: The message store has reached EOF

I have tried reinstalling dozens of times. Like I said, I've tried on three different machines. I've also tried with two different servers. Never had a problem until 4.2 hit pre9 or so. Opening a non-secure connection works fine.

Is anyone else having this problem? Does the author know about it? Can you duplicate it? Is there a fix in the pipeline? I'm desperate to get an answer (and a fix!) as I would really like to continue using jEdit.

Thank you very much in advance for taking the time to read this and for your help.

Thanks,
Shannon
Execute menu item from macro?
Submitted by kwerle on Tuesday, 31 August, 2004 - 08:18
I have just written a very useful console command. It works just the way I want. Unfortunately, console doesn't seem to let you create shortcuts for commands you wrote (another issue). Is it possible for me to write a macro that will call a specific menu item?

I just want it to do something very simple:
executeMenuItem("Plugins.Console.MyCommand");

Is there such a thing, and I'm just not seeing it?

TIA
XInsert (XInsert-1.91.zip v1.91 by Markus Birth)
Submitted by mbirth on Tuesday, 31 August, 2004 - 09:52
Added new feature to XInsert: Show hints (tooltips) for tags, works fine with 4.2final. Example wikipedia.insert.xml included. Changed files from 1.9 source are: xinsert.dtd, XInsertHandler.java, XTree.java, XTreeItem.java.
LazyImporter ()
Submitted by mbirth on Tuesday, 31 August, 2004 - 10:39
Fixed a bug with double-slashes in strings causing LazyImporter to hang at "Creating JavaClass..." because it thought it was a comment from there and didn't recognize the closing quot.mark of the string. Changed files are JavaCommentStripper.java and JavaUtilities.java.
A Colourful HTML (html.zip v1.1 by Venimus)
Submitted by venimus on Tuesday, 31 August, 2004 - 11:55
Update:
  • The mode is now compatible with 4.3pre5+.
  • DOCTYPE highlighted
  • highlighted
  • Highlighting of multiline tags improved (but not perfect).
  • Highlighting of numbers improved.
  • Some other bugs fixed.
This is the most featured HTML color mode arround. It has almost all of the functionality you need when developing web content. Recognizes CSS,PHP,Javascript (delegates to the existing modes).

features (what highlights):
  1. extended tag/attributes recognition
  2. some error recognition
  3. inline CSS (requires mode - CSS v2.2 by John Paul Taylor II [updated])
  4. inline Javascript
  5. PHP
limitations (to do):
  1. no asp and vbs support

known bugs (hard to fix):
  1. The first atribute must be preceded by space/tab, new line is not enough, the rest work ok.
  2. there is small chance, but it is possible an invalid attribute to highlight as "event", it is caused of the impossibility of matching line-starts (or EOLs) in regex (due to limitations)
  3. There is a bug in jedit if background for color syntax is set. That background incorrectly applies to other tokens which doesn't have a background color set. By default the "invalid" type have a background and the other types doesn't. So the mode may look like it doesnt work. To fix that, set a background to all types or remove the background of the "invalid" type.
installation:
follow the usual steps for installing a mode definition:
  1. overwrite the original html.xml in jedit installation directory, or save it to .jedit/modes directory, and modify .jedit/modes/catalog to include
    <MODE NAME="html" FILE="html.xml" FILE_NAME_GLOB="*.{html,htm}" />
  2. Install the fixed PHP mode (original) included in the package by overwriting or adding definition into the "catalog": <MODE NAME="php" FILE="php.xml" FILE_NAME_GLOB="*.{php}" />
  3. You may try to use this HTML mode for php files aswell by tricking jEdit to use html.xml to highlight php. This way the html code outside <?php?> will be highlighted. To do it, instead the above definitions (1. & 2.), add the following lines in "catalog" : <MODE NAME="php" FILE="php.xml" FILE_NAME_GLOB="*.{~}" /> <MODE NAME="html" FILE="html.xml" FILE_NAME_GLOB="*.{html,htm,php}" /> (note the "*.{~}" - it must be an invalid extesnsion, because html.xml will be used for the *.php files aswell, but if we replace directly the original php.xml will not be available for delegation)
    I recommed you install the included fixed mode, but the original one should work just fine.
    WARNING:This trick may cause some misbehaviour (on theory), because aftar that step "php" files will become "html" for jedit and plugins that depend on it may cease to work. However I didnt notice any problems.
  4. Install the CSS mode included by overwriting or adding into "catalog":
    <MODE NAME="css" FILE="css.xml" FILE_NAME_GLOB="*.{css}" />
  5. fix your syntax colours from "general options": set a background color to all types or remove the background of the "invalid" type.
used colors:
markup - unknown tag
keyword1 - tag
keyword2 - attribute name, <tr>, </tr>
keyword4 - tag that MUST be included in other tag
keyword3 - deprecated tag
function - unknown attribute
literal1 - attribute value
literal2 - inline css
literal3 - inline javascript
comment1 - comment
comment2 - m$ conditional definition (IE)
LazyImporter (LazyImporter-1.07.zip v1.07 by Markus Birth)
Submitted by mbirth on Tuesday, 31 August, 2004 - 12:15
Fixed a bug with double-slashes in strings causing LazyImporter to hang at "Creating JavaClass..." because it thought it was a comment from there and didn't recognize the closing quot.mark of the string. Changed files are JavaCommentStripper.java and JavaUtilities.java.
'Unsync' split screen mode?
Submitted by Anonymous on Tuesday, 31 August, 2004 - 12:52
This is hopefully simple. I use jEdit with a split screen, usually with a different file in each split. When I open a new file now, it's opening and becomgin active in both splits. I don't recall that happening before -- the new file would open in only the active split but get listed as open in both splits.

As it's working now, I have to click into the other split and re-select the file that I was working on prior to opening the new file, which is quite a pain...

Is there some setting I missed somewhere to "unsync" the splits, so that newly opened files become active in only the selected split? Or am I remembering the past incorrectly, and this is just how it works? I've looked at (I think) every menu option, and the user manual, but I can't find anything about this...

thx;
-rob.
Opening and Saving Files From Windows Network
Submitted by AForgue on Tuesday, 31 August, 2004 - 13:53
I just starting trying jEdit and was halted immediately when I went to open a file from a computer on my network. It was not initially apparent to me how I could go about opening a network file from the file broswer without first mapping a drive. Am I doing something wrong? Is mapping a drive the only way to open files from a network computer?

Thanks!
Aaron
Request for an enhancement to projects...
Submitted by Anonymous on Tuesday, 31 August, 2004 - 17:25
As I was working with jEdit, I realized that the only purpose for another java editor I use was to batch-compile and run my programs.

So, I was wondering if anyone could make a plugin that would provide basic javac, javadoc, and java capabilities to projects... (sort of like JIndex, except actually compiling/running/javadocing the code)
Run Java Programs using Native OS (WinXP) Command Prompt
Submitted by frankiechayc on Wednesday, 1 September, 2004 - 03:49
I have many Java programs that read keyboard input from the command line. The Jedit Console plugin currently does not support reading input from keyboard. So I can't run such programs in Console.

I am trying to write a macro which will run the Java program from the buffer using the native OS shell so that the program can accept keyboard input from users. Help or advice appreciated. Thanks
License of Mode Files ?
Submitted by llothar on Wednesday, 1 September, 2004 - 06:25
Hello, under what license are the mode files ?
I want to use them in another editor. Is this okay ?

What's about only using the "wisdom" in this files ?
CharacterMap plug-in problem
Submitted by bibiko on Wednesday, 1 September, 2004 - 10:20
dear all,

I have a big problem with the characterMap plug-in.

I tried to insert unicode characters of block CJK (Chinese,etc) but I cannot choose this block because the the combo-box is visible but not active.

I tried it with version 1.1 and 1.2, on a PC (WinXP prof) jre 1.4.2_03, on a Mac (OSX 4.3) jre 1.4.2-38 with jEdit 4.2pre14 and final. Always the same.

My global coding is UTF8 and I tried some unicode fonts.

I can remember me that with an earlier version of jEdit the CharacterMap worked very fine.

Have anybody a solution?

Thanks in advance

bibiko
Command line option to open file as readonly
Submitted by scottjp on Wednesday, 1 September, 2004 - 20:59
I would like to be able to open a file as readonly via a command line. I use the editor to load different reference files that I do not want to accidently change (e.g. phone listing). A command line option also enables me to define an icon for each reference file. An indicator of the readonly status in the status bar would be helpful.

I know I can create a script that will set the file readonly once I have it open, but I'd rather not have to remember to run the script each time I open the file.

Setting the properties for the file at the OS level is not an option.
Number of pages in print footer
Submitted by scottjp on Wednesday, 1 September, 2004 - 21:01
I'd like to be able to configure the print footer such that it will display the total number of pages in the file (e.g. Page 1 of 100).
pb with final 4.2 on XP with jre 1.5 RC on xml indenter plugin
Submitted by Anonymous on Thursday, 2 September, 2004 - 16:33
java.lang.NullPointerException at java.text.MessageFormat.applyPattern(Unknown Source) at java.text.MessageFormat.(Unknown Source) at java.text.MessageFormat.format(Unknown Source) at xmlindenter.XmlIndenterPlugin.processException(XmlIndenterPlugin.java:66) at xmlindenter.XmlIndenterPlugin.indentXml(XmlIndenterPlugin.java:116) 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: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.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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)
Serious bug with jedit 4.2 and FTP plugin on JDK 5.0
Submitted by Anonymous on Friday, 3 September, 2004 - 02:00
Hi,

I have noticed a rather serious bug when using the FTP plugin in jedit 4.2 with JDK 5.0 (both beta 2 and RC1). When I open a ftp folder and choose a file from an ftp site to open in jedit and then modify and save it, the hard drive makes a click sound and turns off, the computer immediately reboots, and when it reboots the hard drive turns back on. I've never experienced this problem with any other program, so I'm wondering what may be the problem here. On some files if I press save it doesnt reboot, but with most files, upon saving the remote file, it reboots immediately. I wonder whether this is a problem with the FTP plugin, jedit, or JDK 5.0?

any help is GREATLY appreciated.
thanks.
Do not complete words in commented texts
Submitted by Anonymous on Friday, 3 September, 2004 - 07:22
It would be nice (in a code editor environment) to have the option that the complete command (C-b) does not consider the words inside comments (as defined for example in the mode XML file or by the highlight features).
Ensuring a single instance
Submitted by takisd on Saturday, 4 September, 2004 - 04:36
Hi

i just upgraded to 4.2 and have noticed that opening a file opens a new jedit instance. this never occurred in 4.1 - or i set something for it to keep the same window. either way, i can't figure out how to get it to use one instance only. the second window always has the same list of documents opened previously and adds the new one. i open docs mainly from the nautilus browser with the open with popup command on a file.

i only noticed this since 4.2.
i'm using debian unstable. i installed jedit using the java installer.

any suggestions on how to stop this behaviour would be greatly appreciated.
Thanks

Takis
[bug]Comments not shown in other downloads (..?q=filestore/...)
Submitted by venimus on Saturday, 4 September, 2004 - 05:40
"# comments/view comments" and "Read more" are not displayed at filestore section. I noticed this in Edit Modes section when it is called from Other Downloads. They appear if one clicks on "Edit Modes" link near the title of a posted issue. That link open the site with ?q=taxonomy/.. (rather than ?q=filestore/..) where everything works ok.
As far as i can remember, all worked ok in the beginning of the year.
User login
Browse archives
« August 2004 »
MoTuWeThFrSaSu
 
15
16
21
26
 
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