jEdit Community - Resources for users of the jEdit Text Editor
Archives
Ocaml Edit mode (ocaml.xml v0.1 by Tobias Elze)
Submitted by tobias-elze on Thursday, 22 April, 2004 - 14:10
Edit mode for the programming language Objective Caml (http://www.ocaml.org ).
auto repetition of regex-based search & replace
Submitted by Anonymous on Thursday, 22 April, 2004 - 15:43
I need to process long lists of index records (many thousands of entries), to convert from a format prepared for print publication to a database-oriented format. Specifically, where the first word(s) in a record is repeated in the following record the repetition is implied by indentation (effectively whitespace). For example:

Abadham, Harvey v. H65/24
Abarrow, Radford v. R23/47
Abbes, Claxton v. C129/19
...Kinwellmarsh v. K26/98
...Parmenter v. P40/32
Abbey, Clarke v. C114/23
...Harrison Kt. v. H95/24
...Snawsdale v. S49/3
...Tooker v. T19/22,61/127
Abbott, Antram v. A8/41
...Ashton v. A7/55
...Bacon v. B44/22
...Ballard v. B110/40
...Kt., Barnes v. B12/64
...Battersby v. B135/12

["..." = whitespace]

I can find and replace the "indent" by the required string OK, using a tagged regex string to search. But after the replace is done, the search stops and I need to click the replace button again to do the next replacement; "replace all" doesn't seem to work (maybe because the search string value is dynamic??).

I have a lot of this type of work to do, and was trying to avoid having to write code - and the approach seems almost to work, if I didn't have the problem that the search stops. I have also tried TextPad, which has the same problem, and it appears that Ultraedit will be the same.

Any ideas?

Ian Galbraith
Logical file grouplings or workspaces
Submitted by Anonymous on Thursday, 22 April, 2004 - 17:47
Often I need a core set of files, often depending on the exact task I am working on. Through the course of the day, I may open many extra files, or perhaps work on two or three seperate tasks. It would be nice of I could group a set of documents to a workspace/group/what-have-you, and open all the files in one shot. That way if I get too many open, I can close all files and start from scratch. I can open my config files, my current tasks, or perhaps a set of XML documents.

Not sure if this would be good for a plug in or for the program itself, then again, perhaps this feature exists and I just missed it.

Tom
Problem with the Tags plugin and PHP functions
Submitted by Anonymous on Friday, 23 April, 2004 - 11:53
I'm trying to use the Follow Tag feature to find where a PHP function is declared, but it has a problem with functions that have parameters eg foo( $bar, $room, $brawl ). It will find the file the function is located in, but not jump to the correct line, just stays on the first line.

It works fine if the function has no parameters eg foo()

It's driving me slightly mad....
java.lang.NoSuchFieldError on startup
Submitted by Anonymous on Friday, 23 April, 2004 - 13:46
Can anybody help with this error on startup? Only happened after i added plugin jars to the jars folder

Exception while sending message on EditBus:
[error] java.lang.NoSuchFieldError: LOADED
[error] at errorlist.DefaultErrorSource.handleBufferMessage(Unknown Source)
[error] at errorlist.DefaultErrorSource.handleMessage(Unknown Source)
[error] at org.gjt.sp.jedit.EditBus.send(EditBus.java:166)
[error] at org.gjt.sp.jedit.Buffer.load(Buffer.java:183)
[error] at org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1343)
[error] at org.gjt.sp.jedit.jEdit.newFile(jEdit.java:1485)
[error] at org.gjt.sp.jedit.jEdit.newFile(jEdit.java:1440)
[error] at org.gjt.sp.jedit.jEdit$2.run(jEdit.java:3072)
[error] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
[error] at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
[error] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
[error] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
[error] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
[error] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
[error] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
[error] Exception while sending message on EditBus:
Something similar to old emacs iso-accents-mode would be great!
Submitted by davidbourguignon on Saturday, 24 April, 2004 - 11:19
Dear all,

I recently switched from emacs to jedit with no regret. However, being French and using a qwerty keyboard (for programming), I really miss one emacs feature: iso-accents-mode. This feature seems straightforward and would help thousands of people struggling to find characters such as ß (German), ø (Dane) and ç (French) on their keyboards...

For people frequently typing in an "accented letters language" this emacs thing is much more convenient than the traditional "insert special character" GUI, such as the CharacterMap plugin.

However, if this feature already exist somewhere in a plugin, I will try again to find it on plugin central... Eye-wink

Thanks in advance for your help,

David.
code folding
Submitted by Anonymous on Saturday, 24 April, 2004 - 17:12
Code folding is great, please implement it.
egz. www.jcreator.com --> try this feature...
Monospaced font: spacing problems
Submitted by WGW on Saturday, 24 April, 2004 - 17:14
I have been hunting the documentation to find out if I can change the display font to a monspaced font. I sometimes have fixed format text like this, which mixes spaces and alphanumeric characters:

554544 54445544455545545
55454555555555 55545555
54 45444444434343430444

The problem (which is nicely reproduced by this forum software) is that spaces are not the same size as characters, so the lines are not the same length, though in monospace they would be, as they are in the QuickNotepad (or in this forum editor box for example). If I put zeros in place of the spaces I get something evenly spaced:

5545440054445544455545545
5545455555555500055545555
5400045444444434343430444


Is there any way to change the display font? I toyed with the Whitespace plugin, but was unable to resolve the problem. I have the impression it is a question of changing the font. I thought that was possible, but now I can't seem to find the documentation on it.

Thanks for any suggestions.
Mac OSX command line integration
Submitted by Anonymous on Sunday, 25 April, 2004 - 04:38
How to launch jEdit from the OSX command line? Is there a better way than executing /Applications/JEdit\ 4.2pre11/JEdit.app/Contents/MacOS/JavaApplicationStub ? I have the following function in my .bash_profile, but it doesn't pick up the path to any file I pass to it, e.g. if I type 'jedit .bash_profile' from my home directory, jEdit will try to create a new file in /Applications/JEdit 4.2pre11/. There must be a way to get this to work? I searched here and via google and was unable to find anything on the subject. Thanks for any help, and apologies for my poor bash skillz.

Here's the bash function:

jedit () { /Applications/JEdit\ 4.2pre11/JEdit.app/Contents/MacOS/JavaApplicationStub -background "$@" ; }

Using OSX 10.3.3, jEdit 4.2pre11.
ASP / ASPX
Submitted by JerJer on Monday, 26 April, 2004 - 13:26
I don't know if this is the right forum, but I'm currently coding some asp.NET. If I code in asp, my keywords gets colors and well it's easier to view your code. In asp.NET I just get black text. I know I can go in the "Buffer Option... - edit mode" and specify that I'm currently coding asp. Is there a setting somewhere that I could change so I wouldn't have to change the setting every time for every file.

Thanks a lot in advance !!

Jer
minor updates for VOGen macro (VOGen.bsh v1.1 by Jia Zhiming)
Submitted by jiazhimi on Tuesday, 27 April, 2004 - 03:57
Some minor changes to VOGen macro, changes include:
1. removed java edit mode checking, now a new buffer can perform VOGen before saving.
2. added in check to verify the buffer contains matching brackets, if no matching bracket alert the user, instead of fialed to generate content and leave user in the lurch.
3. added in version number in comments
Enjoy.
Note:
The macro support incremental VO generation. Means if you added in some new variables into existing generated java file, the macro will only generate get and set methods for newly added variables.
The macro retains the original format.
AntHelper for JavaCore (AntHelperForJavaCore.tar.gz v0.4 by Robert Fletcher)
Submitted by rfletch6 on Tuesday, 27 April, 2004 - 12:58
A JavaCore service that gets classpath/sourcepath from AntHelper. Requires JavaCore 0.7+ and AntHelper 0.8.4+. This version improves behaviour when dealing with files that do not have a build.xml.
SQL Troubles
Submitted by ebresie on Tuesday, 27 April, 2004 - 15:40
I am trying to use the SQL plugin (.98) on a Windows 2000 based system using MySQL 4.0.18 with JEdit 4.2pre11 .

I'm not sure if this is something I don't currently have configured properly but whenever I try to access the SQL in the Plugin Options, it basically becomes unresponsive.

I tried getting the JDBC Connector for MySQL but I'm not sure if I have this configured correctly or if I am missing something.

My eventual hope is to use XP Tracker which requires MySQL to work, but first things first..

Anyone have any ideas of how to work on this one?
jEdit 4.1 DotComplete impossible, why no SpeedJava?
Submitted by Anonymous on Tuesday, 27 April, 2004 - 21:23
Greetings,

I'd like to get a dockable view of all the methods in the current Java buffer. I noticed SpeedJava in one of the screenshots, but someone took it away. I see to use DotComplete instead. OK.

First, I don't see DotComplete in the Plugin Manager. So I go to the plugins site and start manually grabbing the painful list of dependencies for DotComplete. Now I'm stuck. DotComplete depends on AntHelper, which depends on JBrowse, which depends on jEdit 4.2. Grr.

Now what? I'd rather not upgrade to 4.2 yet. What was so wrong with SpeedJava that I can't get it any more? Is there a plugin I missed besides DotComplete that will give me a dockable view of my Java methods in the current buffer? I already tried Jane, but the view was not quite configurable enough.

Thanks for any tips,
-Dan
Newbie: Printing Properties of my printer
Submitted by TUCBuckeye on Tuesday, 27 April, 2004 - 23:49
I'm new to jEdit and it looks pretty sweet...nice work!

One question I haven't been able to find an answer for so far:
- When I print something, I can select the printer, but the Properties box is grayed out. Is that a limitation or have I not set something up correctly?

Especially with code, I like to go in and "2 - Up" so that I waste less paper.

Thanks!

- Trent
jalopy plug - in question
Submitted by trcanz on Wednesday, 28 April, 2004 - 00:09
Hi, I am trying to use the jalopy plugin for jedit 4.1.

Using version 0.3.6 of the plugin which has these jars:
11/14/2002 10:29p 905,948 jalopy-1.0b10.jar
11/14/2002 10:29p 26,050 jalopy-jedit-0.3.6.jar
11/14/2002 10:29p 89,584 jdom-1.0b8.jar
11/14/2002 10:29p 350,525 log4j-1.2.6.jar
11/14/2002 10:29p 39,099 messageview-0.1.0.jar
11/14/2002 10:29p 65,383 oro-2.0.6.jar

the (jedit) program hangs when I choose the Plugins>Format Active Buffer command.

Also, if I try to use the jars that
Plugins>Plugin Manager>Install Plugins gets for me:

jalopy.jar
JalopyPlugin.jar

I get:

java.lang.NullPointerException

at de.hunsicker.jalopy.plugin.jedit.JEditPlugin$PluginImpl.formatActive(JEditPlugin.java:463)

at de.hunsicker.jalopy.plugin.jedit.JEditPlugin.formatActive(JEditPlugin.java:162)

at java.lang.reflect.Method.invoke(Native Method)

at bsh.Reflect.invokeMethod(Unknown Source)

at bsh.Reflect.invokeStaticMethod(Unknown Source)

at bsh.Name.invokeMethod(Unknown Source)

at bsh.BSHMethodInvocation.eval(Unknown Source)

at bsh.BSHPrimaryExpression.eval(Unknown Source)

at bsh.BSHBlock.eval(Unknown Source)

at bsh.BshMethod.invokeDeclaredMethod(Unknown Source)

at bsh.BshMethod.invoke(Unknown Source)

at org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)

at org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown Source)

at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(Unknown Source)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1461)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1515)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:392)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:264)

at javax.swing.AbstractButton.doClick(AbstractButton.java:290)

at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:957)

at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:244)

at java.awt.Component.processMouseEvent(Component.java:3799)

at java.awt.Component.processEvent(Component.java:3628)

at java.awt.Container.processEvent(Container.java:1202)

at java.awt.Component.dispatchEventImpl(Component.java(Compiled Code))

at java.awt.Container.dispatchEventImpl(Container.java(Compiled Code))

at java.awt.Component.dispatchEvent(Component.java(Inlined Compiled Code))

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java(Compiled Code))

at java.awt.LightweightDispatcher.processMouseEvent(Container.java(Compiled Code))

at java.awt.LightweightDispatcher.dispatchEvent(Container.java(Compiled Code))

at java.awt.Container.dispatchEventImpl(Container.java(Compiled Code))

at java.awt.Window.dispatchEventImpl(Window.java(Compiled Code))

at java.awt.Component.dispatchEvent(Component.java(Inlined Compiled Code))

at java.awt.EventQueue.dispatchEvent(EventQueue.java(Compiled Code))

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java(Compiled Code))

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java(Compiled Code))

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:132)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:124)

Does anyone know how I can fix either/both of these problems so that I can use jalopy? I am not very familiar with JEdit.

Thanks in advance,
Thomas
Overview/outline
Submitted by Brad Mace on Wednesday, 28 April, 2004 - 04:06
A tree which shows the whole project with all subunits
Problem with Whitespace Plugin
Submitted by Anonymous on Wednesday, 28 April, 2004 - 04:51
I'm using version of jEdit beginning from 4.1 to 4.2pre11 with j2sdk v.1.4.1 on Win2000.
All this time I can't compel show spaces and tabs in textarea by Whitespace plugin. In other respects this plugin work perfect. So in what problem?
Allow indicating acceptance
Submitted by Brad Mace on Wednesday, 28 April, 2004 - 04:57
The backend for acceptance is in place, but there is no way for the user to indicate that a unit has been accepted.
Renaming developers
Submitted by Brad Mace on Wednesday, 28 April, 2004 - 04:59
need a way to rename developers
User login
Browse archives
« April 2004 »
MoTuWeThFrSaSu
  4
 
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