jEdit Community - Resources for users of the jEdit Text Editor
Archives
Creating new key words (SQL)
Submitted by rdtindsm on Sunday, 8 November, 2009 - 18:43
Have been using Jedit for an SQL class, particularly because of the "capitalize key words" macro, which is SOP in the SQL community. There seem to be some that aren't included, 'minus' in particular. I'm not an SQL guru, but am told that different implementations can have different keywords, so the ability to modify this list would be very useful, as it was the last time I used an editor with the capability.

The home page suggests that I can add (or create) my own. Looked in users guide, FAQ, et.al, and can't find any references that tell me how to do this. Can I change colors too?
FTP Plugin Timeout value
Submitted by imgod2u on Monday, 9 November, 2009 - 02:38
The sites I'm connecting to remotely have a pretty long authentication time for some reason. This makes it such that re-connecting after a connection has timed out painful. I've looked and there doesn't seem to currently be a way to do this but it'd be nice if you could manually set the timeout value and possibly set it to never.

It'd also be nice for a "keep connection alive" feature for servers that have a timeout built-in.
Javadoc Commenter (Write_Javadoc_Comment.bsh v1.0 by Damien Radtke)
Submitted by kog on Monday, 9 November, 2009 - 16:42
This is a Java macro that writes Javadoc comments for you. It searches upwards from the cursor for a "public", "protected", or "private" keyword, requests input via a series of input boxes, and when you're finished inserts a new Javadoc-formatted comment in the correct position.
Vim-Style Left and Right (vim-movement.zip v1.0 by Damien Radtke)
Submitted by kog on Monday, 9 November, 2009 - 18:41
These two macros are intended to replace jEdit's default "Go To Next Character" and "Go To Previous Character" actions. When used, pressing left or right will never move the cursor up or down. Normally, if left is pressed at the beginning of a line, the cursor moves up a line, and when pressing right at the end of a line, it goes down one. With these macros, in both cases, the cursor stays where it is.
How with jEdit edit String in java program?
Submitted by programania on Wednesday, 11 November, 2009 - 17:22
How with jEdit edit String in java program?

Something of a type:
String s =jEdit.???????????? (" for (i=0; i < 10;) \n {\n i ++; \n} ");
Call "Complete Word" automatically after Nth letter?
Submitted by DVV on Wednesday, 11 November, 2009 - 17:40
I believe such question was asked before, but I could not find the answer, sorry.
How can I make jEdit to call/execute its built-in function "Complete Word" for every word after I type, for example, 3 first characters of the word? You see, typing Ctrl+B for each word is tiresome, why don't jEdit itself "call" this function after Nth first letters of word have been typed?

P.S.
I've tried the TextAutocomplete plugin, but it seems to be not what I need. All I need is the standard functionality of Ctrl+B but without Ctrl+B typed manually.
Amazing editor, by the way!
perl highlight
Submitted by Andrey Zloy on Thursday, 12 November, 2009 - 15:44
jedit incorrect highlight this perl code
sub GetObjectByType {     my $self=shift;     my $type=shift;     my $name=shift;     my $search_href={type=>$type};     if ($name){       $search_href->{name}=$name;     }     my $attr_href={rows=>1,order_by=>\'version DESC'};     if (!($ENV{IS_ADMIN})){       $search_href->{synced}=1;       my $obj_version=$self->obj_version;       if (!($obj_version)){         $obj_version='0';       }       $search_href->{version}={'<=',$obj_version};     }     return [$self->objs->search($search_href,$attr_href)->all]->[0]; }
Thunderbird crashes
Submitted by oh on Thursday, 12 November, 2009 - 17:11
When I copy some text from jEdit and paste it into the body of an email, Thunderbird immediately crashes - vanishes without a trace. I am not saying this is a bug with jEdit, might well be with Thunderbird. But do any of you have a suggestion for fixing this - some kind of encoding settings? (For the moment I just keep gedit open and paste the text there - and do a further Copy/Paste from gedit to dump it into a Thunderbird email.)

I am using jEdit 4.3pre16 with Java 1.6.0_0 on Ubuntu 64 and Thunderbird 3.0pre (Shredder).

Thank you,
OH
Open Source jEdit for Sale
Submitted by jeditralf on Sunday, 15 November, 2009 - 15:43
Look here:
http://mac.softpedia.com/get/Word-Processing/Jedit.shtml
Small problem with FTP plugin when username contains @
Submitted by marchost on Tuesday, 17 November, 2009 - 14:23
Hi all, first if some of jedit developper are reading this, I would like to say that jedit is a wonderful editor, continue your great work...

I just ran into a small issue today with the FTP plugin.

I couldnt connect to a FTP (using plugin->ftp->connect to ftp) when a username had an "@" (user@domain.net) it would create an address of : ftp://user@domain.net@domain.net:21 which obviously dont work.

The workaround is to put the FTP address in the path and after the plugin prompt for user/password...
Buffer stopped showing up in all views
Submitted by proee on Wednesday, 18 November, 2009 - 16:48
For some reason jEdit stopped showing all open buffer in each view. Now buffers are segregated to a single view. When I open a new buffer, I'd like it to be available in my buffer tabs across all views.

Somehow I must have broken this or turned of the default setting.

Any ideas how to get all buffers showing in each view?
Unable to close file
Submitted by kbs on Wednesday, 18 November, 2009 - 18:59
I installed the r.xml mode file and then tested it by opening a file with .R extension. The syntax highlighting worked just fine, so I thought I did the installation correctly, but now I'm unable to close that file, exiting jedit and re-opening doesn't help, the file is still open. I get this error message:
java.lang.NullPointerException: Mode must be non-null
at org.gjt.sp.jedit.Buffer.setMode(Buffer.java:2016)
at org.gjt.sp.jedit.Buffer.setMode(Buffer.java:2066)
at org.gjt.sp.jedit.Buffer.finishLoading(Buffer.java:3920)
at org.gjt.sp.jedit.Buffer.access$800(Buffer.java:71)
at org.gjt.sp.jedit.Buffer$1.run(Buffer.java:280)
at org.gjt.sp.util.WorkThreadPool.addWorkRequest(WorkThreadPool.java:110)
at org.gjt.sp.jedit.io.VFSManager.runInAWTThread(VFSManager.java:261)
at org.gjt.sp.jedit.Buffer.load(Buffer.java:317)
at org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1473)
at org.gjt.sp.jedit.jEdit.newFile(jEdit.java:1617)
at org.gjt.sp.jedit.jEdit.newFile(jEdit.java:1572)
at org.gjt.sp.jedit.jEdit._closeBuffer(jEdit.java:1717)
at org.gjt.sp.jedit.jEdit.closeBuffer(jEdit.java:1664)
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.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Getting standalone textarea to work with syntax highlighting, code completion, etc.
Submitted by mikeklein on Sunday, 22 November, 2009 - 21:22
I have run build.xml to generate standalone-textarea and despite tweaks (BufferUndoListener?) needed in build got past this.

I can successfully show a textarea with my content inside however there is no java syntax highlighting, backspace/del/arrow keys don't work, etc. All text is black and white.

I am instantiating the textarea with supplied 'jedit.props' file and changed default mode from text to java in 'jedit.props'. I have confirmed that modes directory (with text.xml/java.xml) is a part of my textarea jar produced by build as is the modified jedit.props file.

Any ideas how I can actually use this standalone widget as intended? I need syntax highlighting and code completion. I was hoping to pass in classpath urls as needed for code completion part.

I am seeing nothing in APIs (at least from textarea) which would allow me to do any of the above.

Help w/be nice right about now...

thanks in advance,

mike
Complete Word automatically after Nth letter
Submitted by DVV on Thursday, 26 November, 2009 - 14:40
Please add an option for jEdit to call/execute its built-in function "Complete Word" for every word after N first characters of this word have been typed.
You see, typing Ctrl+B for each word is tiresome, why don't jEdit itself (automatically) show the list of possible words after Nth first letters of a word have been typed?
Regex for jEdit
Submitted by Whoshooter on Sunday, 29 November, 2009 - 18:40
Hi there - this is my first post here on the forum. I used to use UE but have switched to jEDIT. I have a regex for EU that adds the word BREAK every three sentences (or periods really), that worked like this.

BEFORE
The cow juumped over the silvery moon. Jack and Jill went up the hill to fetch a pail of water. Humpty Dumpty sat on a wall. It was the best the times it was the worst of times.

AFTER REGX
The cow juumped over the silvery moon. Jack and Jill went up the hill to fetch a pail of water. Humpty Dumpty sat on a wall. BREAK It was the best the times it was the worst of times.

This was the REGEX I used in EU for this move;

Find What: ^([~.]+.[~.]+.[~.]+.^)

Replace With: ^1 BREAK

Does any smart person know what the jEDIT version of this would be??? I'm fighting it with no signs of success in the near future.
How to use automatic configuration script with jedit
Submitted by vivekbhat on Wednesday, 2 December, 2009 - 08:21
Hi,

I use jEdit in office where we connect to the internet using proxy. This proxy is set by an automatic proxy configuration url (PAC).

Now I am not sure how run this configuration in jEdit. I know there is "Proxy Servers" settings tab in "Global Options". But there is no place where I can put the automatic proxy configuration url. The downside of this is that I can install or upgrade jEdit or jEdit Plugins here.

Any help will be greatly appreciated... Smiling
jedit and git
Submitted by vivekbhat on Thursday, 3 December, 2009 - 10:09
Hi,

Is there a way I can use git with jedit. Like while creating projects, in the Verison Control there is a choice of subversion... I wanted to use git instead of that. Can I do that...
jEdit in github
Submitted by sergi.mansilla on Sunday, 6 December, 2009 - 21:33
Hello,

I believe that switching the jEdit VCS to git/github would attract developers to the project. Several projects have reported great benefits contribution-wise when they moved to github (Erlang, jQuery, HelmaNG and Clojure being some of them). The reason is that the pull/push/branching system is amazingly convenient and lets everybody focus on real code and not maintenance. The interface is easy to use as well.

Is there any possibility that this would happen in the near future? I think it would be amazing for the project, really.

Cheers,

Sergi
Two file browser/favorites features
Submitted by painted on Tuesday, 8 December, 2009 - 18:45
Love jedit. A couple changes to the favorites feature I'd love to see:

1) The ability to edit favorites. I use them to store FTP connections for the FTP plugin, and right now if a password, username, or path changes, I have to delete the whole entry and add it again.

2) Favorites saved on the fly. Right now it seems changes to favorites are only saved when you exit the program. A few times I've entered a new favorite only to have the program or machine crash later in the session and I lose the favorite I'd already entered. IMO these should be saved automatically any time they're changed.

Thanks
Jedit look and feel Themes
Submitted by danilo2 on Tuesday, 8 December, 2009 - 20:32
Hi!
I'm new user of JEdit and I'm slowly discovering all its amazing features.
One of the things, I want to do on the beginning, is I want to adjust the look of this editor - I know it is possible.
Currently I want to achivve effect like this one:
http://4.bp.blogspot.com/_jhhCwGCa5Zg/SnvW0GHuRQI/AAAAAAAAAAs/CE7MmLBA96c/s1600-h/Screenshot-jEdit+-+~-Desktop-haxegui-haxegui-controls-Component.hx+%28modified%29+%5BGroup:+All+Projects%5D.png

Could you please tell me:

1) how can I edit the color schemes - where are the schemes files?
(I found that in "look and feel" plugin there are looks and feels like "skin" or "oyoaha" - but I cannot find instructions how to write themes for them Sad

2) Can I adjust color schemes for other looks like "lipstik"?

3) Please tell me too if I can "add" the jtattoo look into JEdit - because I cannot figure how to do that Sad

Thank you very very much Smiling
User login
Browse archives
« November 2009 »
MoTuWeThFrSaSu
 
3
4
7
10
13
14
16
19
20
21
23
24
25
26
27
28
30
 
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   99587
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300