jEdit Community - Resources for users of the jEdit Text Editor
how to run ruby script
Submitted by bench on Monday, 17 March, 2008 - 21:28
hi!

im following this

http://ruby-talk.markmail.org/message/pw5woijhd4lp3grd?q=jedit

hoping to do the above mentioned task, however, i can't still get a program to run. i get this cryptic beanshell error.

i have the rubyplugin installed.

what am i missing to be able to run a ruby script inside jedit? i also want to have the run result/output generated in one console/window.


thank you!

cajoe
Auto enumeration with search-replace (something like \# in Emacs)
Submitted by cornelius on Friday, 14 March, 2008 - 17:44
Hi,

I've been looking for a feature in Jedit, but couldn't find it so far. Emacs allows a special regular expression in replacement strings: \# This gives the current match number/index, i.e. 0 if this is the first match, 1 if second, 2 if third, etc... You can also add an integer to that to start enumeration at any number. So with this, you can automatically enumerate things pretty easily. That is, you can convert

cat
dog
lion
monkey
elephant

into

1 cat
2 dog
3 lion
4 monkey
5 elephant

with a single search-replace operation using \#

Is this possible with jEdit either with regular expressions or with a beanshell script? If so, how?

Thanks in advance.
bakup JEdit
Submitted by srikrishnan on Thursday, 13 March, 2008 - 10:10
Hi All,

I am going to format my system. Before that I want to take bakup of my current plugins and customized interface options and I want to reuse that in my new formatted Windows environment.

Is it possible to make a bakup of my current JEdit and reuse it?

Please help me to solve this problem, because I have downloaded most probably all the plugins and macros and customised many shortcuts and JEdit Interface for my work.

Regards,
Srikrishnan
Database access in macros
Submitted by phade on Wednesday, 12 March, 2008 - 08:45
Hello,

Knowing how powerful BeanShell really is I wanted to see if it can access databases (oracle). So I wrote quick and small script (real servers replaced of course Smiling):

import java.sql.*;

DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());        

Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@my.oracle.server:1521:MYBASE", "user", "pass");

Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
        
while (rset.next())
     print (rset.getString(1));   // Print col 1
stmt.close();

I ran it and got:

java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@my.oracle.server:1521:MYBASE

First idea was that it is a classpath problem (BeanShell can not access jdbc oracle driver) so I wrote another quickie to see what classpath BeanShell actually sees.

import java.net.URL;
import java.net.URLClassLoader;

ClassLoader = sysClassLoader = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader)sysClassLoader).getURLs();

for(int i=0; i

And yes sure enough it could not see my oracle jdbc in classpath. So I did some testing and discovered that when running jEdit instead of

java -cp oracle.jar -jar jedit.jar
like this
java -cp oracle.jar:jedit.jar org.gjt.sp.jedit.jEdit

then BeanShell finds my oracle jdbc and classpath macro shows also oracle and database macro can connect to oracle server.

So I want to know if it somehow possible to specify classpath when running jEdit like it is usually ran (java -jar jedit.jar) or use some other methods (other than running jedit with org.gjt.sp.jedit.jEdit) to let BeanShell know my new classpath?

Keep up the good work,
Phade
Highlighting tags in TXT files
Submitted by srikrishnan on Saturday, 8 March, 2008 - 05:47
Hi All, I want to distinguish entities (for e.g. α,etc) and tags (
, etc) from normal text in my txt files. Is it possible to create such a thing as like in htm and xml formats? Please help me to achieve this? Regards, Srikrishnan
Anybody using jEdit on the Mac?
Submitted by rovf on Wednesday, 5 March, 2008 - 17:34
I found that my jEdit on Mac OSX 10.4 does not recognize ALT+RIGHT for indenting a selection". When I choose it from the menu (Edit/Indent/ShiftIndentRight), it works fine. When I use the keyboard shortcut (shift+right cursor key), nothing happens.

I haven't seen this problem under Windoze or Linux, and I would like to know if this is a general problem on OSX10.4, or particular to my setup. If anybody out there is using a Mac, could you please try it out and let me know whether it works for you?

Ronald
SQL BeanShell Preprocessor: how to use?
Submitted by Wavis on Friday, 22 February, 2008 - 00:51
I write a lot of SQL at my job. It's one of my primary responsibilities. The SQL plugin has been extremely useful. It would be even more useful if I could get it to replace @variable with a value, but I can't get the preprocessor to work. There is no indication how to use it. It doesn't prompt for a buffer to execute, there is no documentation as to variables the beanshell script would be passed, there are no settings for it in the project properties, or plugin options, or under the SQL plugin menu. Does anyone know?
Action Bar commands
Submitted by prk59 on Sunday, 17 February, 2008 - 21:06
Hi everybody,
Like a lot of you I suppose, I fell in love with jedit. But I still do not know how to use it very well. Yesterday I discovered the action bar. In the manual it says that I can open the Global Options by typing l-o in the action bar. I tried it and it worked. However I was not able to find other commands (for example for the plugin options). When I'm in the action bar and I press up I get a list of commands, but they are of the type plugin-options; what I want is short commands. Where can I find a list of all the commands that I can type in the action bar please?

I also have a small question that is off topic: is jedit still (actively) developped? Because almost everywhere on the site I see old dates (2001, 2003) and on the botton of the page it says (c) 2003. In addition to that, I think there haven't been a release for some time now. Please excuse me if I am wrong (actually I hope I am wrong...)
Menu congestion under 'Plugins'
Submitted by McSwell on Friday, 15 February, 2008 - 17:28
Having installed several plugins, the 'Plugins' menu is getting rather congested. Doing anything requires drilling down several levels--AFAICT, as an end user (as opposed to a plugin provider) I can't assign any menu items to frequently used actions in plugins, nor apparently can the plugin writers put their menu items anywhere except under the Plugins menu. (I can assign shortcut keys to plugin actions, but I'm running out of them, too; and I'm allergic to toolbars.) Also, letter accelerators (like FC for File | Close) don't work with plugins, either. Is there any way for an end user (who is not a Java programmer) to modify the main menu structure? (I know that the Utilities | Global dlg allows me to modify the right-click menu, but I want to be able to modify the main menu bar.) I'm using 4.2 at the office, and don't have any control over that. (I suppose we'll move to 4.3 when it's finalized; maybe that solves my problem?) Mike Maxwell CASL/ U MD (Apologies for the ugly posting; I know how to use whitespace, but my newlines don't show up when I Preview, and presumably won't show up when I submit)
How to get value dropdown in XML Edit Tag Dialog
Submitted by dhschulten on Thursday, 14 February, 2008 - 07:11
Hi, I am using XML Schema for validation and there are situations where there are only a limited number of allowed attribute values. I have seen that jEdit sometimes creates dropdown lists with allowed attribute values (e.g. when editing a schema), but I could not find out how this is done. At least, xsd:enumeration in the following schema expression does not lead to such a value dropdown: A similar situation are key references. It seems desirable to propose a list of existing keys for key reference attributes. But I can understand that it is not trivial to get this list and in very large documents it might not be so desirable after all. Anyhow, is there a way to get a dropdown for attribute enumerations as shown above? Cheers, Dietrich
Default file selection option
Submitted by srikrishnan on Wednesday, 13 February, 2008 - 16:37
Hi All,

Is it possible to set default file selection option for some extensions (e.g. .txt,.xml,etc), for the purpose of opening them my double click the files in Windows, just like in other applications?

Regards,
Srikrishnan
Default file selection option
Submitted by srikrishnan on Wednesday, 13 February, 2008 - 16:36
Hi All,

Is it possible to set default file selection option for some extensions (e.g. .txt,.xml,etc), for the purpose of opening them my double click the files in Windows, just like in other applications?

Regards,
Srikrishnan
Default file selection option
Submitted by srikrishnan on Wednesday, 13 February, 2008 - 16:35
Hi All,

Is it possible to set default file selection option for some extensions (e.g. .txt,.xml,etc), for the purpose of opening them my double click the files in Windows, just like in other applications?

Regards,
Srikrishnan
Any SQL parser available for jEdit?
Submitted by net-res on Friday, 8 February, 2008 - 10:21
The title says it all: are there any SQL parsers available for jEdit?
Quick question regarding autoindenting
Submitted by Jamalarm on Tuesday, 5 February, 2008 - 16:21
Hi,

Very quick question. What do i have to modify in order to change the autoindent from a TAB to three spaces when working with .java files. I had a look around, and i found the file i needed to change, but i couldn't work out what it was that needed changing, as it were.

Thanks enormously,

Tom
Adding shortcut keys to run buffer in Jython Interpreter
Submitted by ras on Thursday, 31 January, 2008 - 20:10
I'd like to switch to using jEdit, but I've run into a major stumbling block. I do all my coding using voice recognition software, and I'm writing a lot of code in Python. I want to run Python scripts through the Jython Interpreter, but I can't figure out how to set up a shortcut key that's the equivalent of putting the "run current buffer" button (if I can set up a shortcut key, I can run the sucker by voice). In Global Options -->Shortcuts, it lists the Jython interpreter plug-in, but all the commands seem to do the same thing -- just open up the interpreter. Any idea how I can work around this?

Thanks,
Anders Schneiderman
Alternative block-fill macro
Submitted by Robert Schwenn on Saturday, 26 January, 2008 - 00:59
Hi,
the block-fill feature of TextTools Plugin doesn't insert more characters per line than fit into the selection's width (the text is cut).

A macro with a different behavior can be downloaded here.

These are the differences to the original function of TextTools Plugin:

1. No choice to overwrite or not the selection. Instead, the selected text is deleted and the new text or number is inserted with it's full length. When numbering, the longest inserted number defines the length of inserted text.

2. Improved performance on large selections because of:
- Removed support for multiple selections (what's the expected result else?)
- Removed support for tab handling (there should be no tabs ...)

Robert
4.3pre12 mac os increase heap
Submitted by upton9265 on Tuesday, 22 January, 2008 - 17:04
Hi All,

I just downloaded and installed jedit4.3pre12 on my Mac OS X(10.4.11) using the .dmg file. Once installsed, I tried loading a large file (~27MB) and I got a "OutOfMemory" error. I've seen this posted before, but I can't seem to find the Info.plist file folks mention to modify. How do you modify the java VM parameters? (this is probably more a Mac question, I suspect. I'm new to the Mac, having used the windows version of jedit).

thanx
steve upton
shortcuts printout
Submitted by srikrishnan on Tuesday, 15 January, 2008 - 16:52
Hi All,

Is it possible to take printout of Default as well as User defined shortcuts list, for our easy reference?

Regards,
Srikrishnan
TextAutocomplete VK_TAB
Submitted by kircheis on Wednesday, 2 January, 2008 - 17:56
I was wondering if other people have any problem with VK_TAB as accept key on TextAutocomplete.
It simply doesn't work for me. I can only complete with VK_ENTER. Is there something I'm doing wrong? Not sure if it is a bug. I simply put VK_TAB but nothing happens when I try to complete. It doesn't work on default either.
User login
Browse archives
« June 2025  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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   108256
Context Free Art (*.cfdg)   0.31   46074
BBEdit scheme   1.0   18610
JBuilder scheme   .001   18511
ColdFusion scheme   1.0   18044
R Edit Mode - extensive version   0.1   17492
Advanced HTML edit mode   1.0   16226
Matlab Edit Mode   1.0   16089
jEdit XP icons   1.0   15248
XP icons for jEdit   1.1   14312