jEdit Community - Resources for users of the jEdit Text Editor
Archives
noob needs macro assistance..
Submitted by jdlx on Friday, 30 December, 2011 - 03:20
Hi,

i'd appreciate if someone could help me on this nobrainer.. (well not for me obviously Eye-wink :

I'd like to grab some selected text, or if none is selected, the content of the clipboard,
and then do some search/replace, add some text, and paste back to the textarea..
my approach so far:

var = textArea.getSelectedText();
if(var.length == 0){
// get text from clipboard & assign to var..
// Registers.cut(textArea,'$'); does get the clipboard, but i just don't know how to assign it to var..
}
esc_var = var.replaceAll("'", "\"");
textArea.setSelectedText("FB::log("+var+",'"+esc_var+"');");

cheers & thx..
jc
Highlight all matches with 'find'
Submitted by seminal on Thursday, 5 January, 2012 - 21:09
New to Jedit - liking it so far. When I hit ctrl + f to find something, it only highlights the first matched result. How do I set it to highlight all the matches on the script?

thanks
Plugins Not Installing (Suspect Windows 7 "Feature")
Submitted by jgamble on Saturday, 7 January, 2012 - 00:42
I've installed jEdit on my new Windows 7 computer, and cannot upgrade plugins or install new ones.

After attempting to upgrade Template, I got the message "The plugin C:\Users\John M Gamble\.jedit\jars\Templates.jar could not be removed", followed by "Error while downloading the plugin, please try another mirror".

New plugins went through the download process (successfully), but then reported "Error while downloading the plugin, please try another mirror" for each one. Changing the plugin installation directory in Global Options from "jEdit settings directory" to "jEdit application directory" had no effect.

I tried this with jEdit version 4.3.3 and 4.4.2 as well, with the same results. I installed the latest version of Java (jdk-7u1-windows-x64.exe), with no change.

So this problem appears to be Windows related, but I can't seem to find anything that would cause this. Which is annoying, as I really need to use the GitPlugin. Any ideas?
bug or feature? No copy&paste in Quicknotepad
Submitted by rovf on Tuesday, 10 January, 2012 - 12:05
(jEdit 4.5 running on Windows 7)

Copy & Paste (using Control-C and Control-V) does not work from and to Quicknotepad. Control-C also doesn't work on text selected at the "Tips of the Day". However, it works fine between edit pane.

Is this a bug, or is this feature deliberately not implemented?
Help (F1) does not work - can not contact to server
Submitted by rovf on Wednesday, 11 January, 2012 - 09:30
Calling up Help (F1) does not open a help window.

The activity log does not show any error. Actually, it does not show any activity whatsoever, except a periodic entry saying

10:27:35 [AWT-EventQueue-0] [debug] EditBus: DynamicMenuChanged[menu=recent-files,source=null]

The problem occurs independent on whether I try to call up the help using the F1 key, or via the Help menu.

Any ideas why this doesn't work?
Calling Perl Compiler from jedit
Submitted by rovf on Wednesday, 11 January, 2012 - 12:44
I'm using jEdit mainly to edit Perl and Ruby programs.

Is it possible to configure jedit, so that it invokes, say, Perl -c when saving a file, and have it display the errors? I first thought that the ErrorList plugin would do the job, but it doesn't. I guess I need some "supporting" Plugin which "knows" about Perl. I have already installed PerlSideKick, btw.
Assign shortcuts to numeric keypad keys
Submitted by fincha on Wednesday, 11 January, 2012 - 14:40
I'd like to be able to assign actions to numeric keypad presses.
This seems to have been asked for a couple of times in the past but the replies don't say whether it is possible or not. Is there any chance of it ever being implemented?
java.net.NoRouteToHostException: No route to host
Submitted by anonymous4711 on Friday, 13 January, 2012 - 19:33
hi all,

i just installed jedit using jedit4.5pre1install.jar

when i run 'update mirror list' in the plugin manager i get lots of erros stating with - see below.
(i had the same problem with jedit 4.2)

it makes no difference wether i turn the http proxy on or off. the proxy works fine for my firefox.

any pointers?
need more info (like OS/version/etc)?

18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: java.net.NoRouteToHostException: No route to host
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.PlainSocketImpl.socketConnect(Native Method)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.Socket.connect(Socket.java:529)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at java.net.Socket.connect(Socket.java:478)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
18:46:07 [jEdit Worker #1] [error] PluginManagerOptionPane$UpdateMirrorsThread: at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
Mustache edit mode (mustache.xml vbeta by Kevin Tucker)
Submitted by tuckerkevin on Sunday, 15 January, 2012 - 17:02
jEdit edit mode for mustache logic-less template language found at http://mustache.github.com/ Since mustache is not limited to HTML, this mode does not assume that the template is HTML. The literal parts of the template are left plain and only the mustache tags are highlighted. catalog line: on github here: https://github.com/tuckerkevin/jedit-mustache
How is PATH in Console determined?
Submitted by rovf on Tuesday, 17 January, 2012 - 09:35
On Windows 7:

I opened a new console using the menu item Plugins/Console/Shells/console.shell.system-show

In the resulting console Window, my PATH is set differently to what I have set using the Windows Control Center.

Now I wonder how jEdit sets up the PATH for the Console application. I checked the Console plugin user's guide, but couldn't find this topic being explained.
Shuffle variables within selection?
Submitted by optigon on Thursday, 19 January, 2012 - 22:03
Long time user of Jedit, but only used to the things I do on a regular basis.

It dawned on me today that there might be a macro or plugin for the following, but I am not really sure what it would be called.

Situation:
There is a line of code with a function including 2 or more variables.
eg. foo(A, B, C)

By selecting "A, B, C", is there a way to suffle their order left or right?
The result would be foo(B, C, A) after using the command once.

I ask because to do this using copy/paste normally requires 2 copy/paste operations.
1. Select and copy "A, "
2. Pasting at the end of the statement gives foo(B, CA, )
3. Select and copy ", " and paste it between CA

Shuffling would either be to the left or right, moving the first or last element to the opposite end of the selection. Returning the with all the items still selected would be useful for multiple iterations.

A shuffle tool that was space and comma sensitive would reduce these edits to a single operation. Perhaps there could be a setting to tell the command what characters represent variable separators (comma, space, math operators, colons, etc)

Having this work for collumn selections would be useful too.

Maybe I'm a lazy coder Smiling
NetRexxJe Plugin does not load
Submitted by rovf on Friday, 20 January, 2012 - 10:39
It says on loading that it can't find the class REException, and suggest I should upgrade to a newer version.

I have installed the most recent version of the plugin, though.
Sessions 1.5.1 beta (Sessions.jar v1.5.1 beta by Steve Jakob)
Submitted by AlanEzust on Sunday, 22 January, 2012 - 06:04
Sessions 1.5.1 beta is updated for jEdit 4.5 and later
Question about main Text Area Syntax Highlighting details.
Submitted by Zachary1234 on Monday, 23 January, 2012 - 09:48
I have changed the white text background to black, and the text colour to green.

-I notice that round braces ()
and curled braced {}
don't show up visually at all. How May I change this?

-Is there a compile button and or a run button inside jEdit?
Can not start cygwin shells from Console
Submitted by rovf on Tuesday, 24 January, 2012 - 12:34
I have a Console (System) window on Windows 7. From there, I can easily open a Windows command shell by typing "cmd". However if I invoke a Cygwin zsh or bash, this hangs forever.

I invoked them like this:

zsh -i
bash --login

The same happens, if I first create a cmd shell from jEdit console, and from *this* invoke zsh or bash.

Doing the same from a "normal" Windows CMD console works well. I wonder what special environment the jEdit console creates, so that the Cygwin shells don't work.
Nor BufferTabs or FTP will install!
Submitted by ImNew on Friday, 27 January, 2012 - 14:56
I downloaded jEdit and I did not do any adjustments, I went directly to the plugins and tried to install them but this came:

Plugin Error:
Error while downloading the plugin, please try another mirror

What does it mean and is there a fix for it?
pl-sql edit mode file for ORACLE (pl-sql.xml vv1.2 by Berthold58)
Submitted by Berthold58 on Monday, 30 January, 2012 - 08:24
pl-sql edit mode file for ORACLE (pl-sql.xml v1.2 30.01.2012 by berthold58)
jEdit 4.5.0 is out!
Submitted by Vampire on Tuesday, 31 January, 2012 - 01:52
Hi all,

I proudly present jEdit 4.5.0, the first stable release of the 4.5 series of jEdit.

Detailed changes can as always be found in the Change Log attached in the end of this email, but here are some of the major features of this version:
  • Performance improvements, as well as a "large file" mode for handling extra large files.
  • Edit using Elastic tabstops, set from Global Options - Editing, Buffer Options, or via buffer-local properties.
  • Lots of old deprecated APIs were removed. Some plugins may be broken as a result.
  • Choose color ordering for subpixel antialiasing (Global Options - Text Area - Anti-Aliased Smoothed Text) (Feature #2989209).
  • Desktop System Tray icon to indicate when jEdit is running (Feature #1657143).
  • It is now possible to switch look and feel without restarting jEdit.
  • It is possible to specify a FILE_NAME_GLOB for an edit mode based on the full path (see entry for apacheconf mode in modes/catalog for an example) (Feature #2557712).
  • File System Browser can now open files in desktop, using desktop filename associations to launch another program.
  • Plugin Manager Enhancements, filter field, bugs fixed.
Volunteers are always welcome to contribute to the future of jEdit:
http://www.jedit.org/index.php?page=devel

That being said, here is the download link:
http://www.jedit.org/index.php?page=download

FYI, merge requests for the 4.5 series (fix done, but waiting for a review) can be found at:
http://sourceforge.net/tracker/?group_id=588&atid=1235750&status=1&artgroup=2274635

Have fun with the new release.
XML Plugin : validation of xsi namespace
Submitted by emilise on Thursday, 9 February, 2012 - 10:24
Hello, I am using the XML plugin and every time I open files using the xsi namespace, errors are shown. Sample file : Error found : cvc-elt.4.2: Cannot resolve 'TransactionRequestType' to a type definition for element 'Transaction' This is just a sample, my real files use a custom namespace and schema, this schema validates ok but I always get the @xsi:type errors I also use Oxygen and these files and the @xsi:type are validated with no problem there. This only happens with the xsi namespace, not with other custom defined namespaces. I don't really know how to handle this. I have found that the xsi schema should be defined in the parser and can not be manually overriden, so I can't find a workaround for this... Thanks for any advice.
print page setup: measurements in mm
Submitted by rovf on Friday, 10 February, 2012 - 10:05
When setting up the page, measurements for the margins must be entered in inch. I suggest that it should be possible to enter these measurements are entered in mm.
User login
Browse archives
« December 2011 »
MoTuWeThFrSaSu
 
1
2
3
7
9
10
12
15
17
18
19
21
22
23
24
26
27
28
29
31
 
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   82339
Context Free Art (*.cfdg)   0.31   46046
JBuilder scheme   .001   18487
BBEdit scheme   1.0   18108
ColdFusion scheme   1.0   18016
R Edit Mode - extensive version   0.1   17465
Advanced HTML edit mode   1.0   16198
Matlab Edit Mode   1.0   16060
jEdit XP icons   1.0   15221
XP icons for jEdit   1.1   14285