jEdit Community - Resources for users of the jEdit Text Editor
Archives
Understand Jedit coding
Submitted by insp on Monday, 24 March, 2008 - 05:49
Hi can any one help me to understand jedit coding. especially the view part of it.
I urgently need an editor in java with syntax highlighting.

can any one help me to separate the syntax highlighting feature of jedit and apply to a stand alone editor.

Its very urgent.. pls help
Can JEdit be used as fully functional Java IDE?
Submitted by Ricardo san on Tuesday, 25 March, 2008 - 00:11
Well? I am programming in Java and can't install anything on the computer. JEdit.jar is what I'm using right now. But a lot of plugins don't work, saying stuff like "cannnot find java.core.java" or something.
When i try to use the jcompiler plugin i get this error
Submitted by fractal00 on Tuesday, 25 March, 2008 - 13:32
When i try to use the jjcompiler plugin i get this error:
Cannot start jcompiler.JCompilerPlyugin$ToolsJarNotFoundException: Could not find library tools.jar!
Templates won't work
Submitted by klaxon62 on Saturday, 29 March, 2008 - 00:51
Folks,
Working with a newish install of Jedit4.3pre9, and plugin Templates 3.3.0 on a Vista Home machine. Behaviour same with similar config on an XP machine. We have good working setup on 2 older installs on XP.

Templates are plain text, no extra code.

When trying to apply a template from the template tree, it fails silently -- text not inserted, no error message.

When applying template from menu Plugins->Templates, the I get the following dump.


If anyone could shed some light on this I would really appreciate it.


____________

java.lang.NoSuchMethodError: org.gjt.sp.jedit.textarea.JEditTextArea.getBuffer()Lorg/gjt/sp/jedit/Buffer;
at velocity.jEditContext.getLeadingWhiteSpace(Unknown Source)
...
Generate Dummy XML from DTD
Submitted by srikrishnan on Saturday, 29 March, 2008 - 06:05
Hi All,

In JEdit, is it possible to generate Dummy xml from the selected DTD as same as in XML spy or Stylus studio?

Is there any plugin for this?

Thanks in Advance,
Srikrishnan
HOWTO: Integrate RSpec on Rails with Jedit
Submitted by dpdnolan on Sunday, 30 March, 2008 - 11:20
Hi, I've hacked together a setup to load an RSpec backtrace into jEdit (in
other words, you'll be able to click the relevant failed behaviour or error
to go straight the relevant file and line).

More info here:
http://textgoeshere.org.uk/articles/2008/03/howto-integrate-rspec-on-rails-with-jedit/

Cheers,
Dave

--
Dave Nolan
http://textgoeshere.org.uk
plugins > plugin mgr > install tab > textarea fiont color (change color?)
Submitted by 222fbj on Sunday, 30 March, 2008 - 12:41
Where do I control the font color for this? I customized my edit area text colors with black background - and they look good. But the 'plugin install description' textarea is now black on black (ie if I highlight text with mouse I can see it.) I tried both on/off for Utilities > Global Options > Jedit Appearance > Experimental > 'Use Jedit text area colors in all text components'. All other text looks fine.

thanks
Find Whole Word only?
Submitted by harmlesscat on Monday, 31 March, 2008 - 03:10
In the Find dialog, I'd like to be able to search for whole words only. E.g., I want to search for the word "cat" but not match occurrences of "catalyst". I cannot just put spaces before and after the word, because there are word delimiters other than a space, such as a comma, period, semi-colon, etc.

Some editors, UltraEdit I believe being one, has a "Find Whole Word Only" option in the search dialog, but jEdit does not. Does anyone know of an easy way to do this in jEdit, via a plugin or perhaps a regular expression? (If the latter, I'd prefer not to have to manually enter every possible punctuation mark every time I search this way.)
Why not to Support groovy for SideKick plugin
Submitted by zcjsg on Tuesday, 1 April, 2008 - 03:24
I found some suggestions about how to use groovy for jedit,But the SideKick plugin doesn't support the "groovy parser",Why not to extend the parser for groovy?
Eagerly expected!
Best Wishes!
DTD to XML
Submitted by srikrishnan on Tuesday, 1 April, 2008 - 15:37
Hi All,

In Stylus Studio, there is an option "DTD to xml". I hope you all aware of that. We will generate a dummy xml using that option for the selected DTD. It will useful for us to get a visual idea, tag hierarcy, what are all the elements available in the DTD, etc.
Is there any plugin available in JEdit? or is it possible to create such a one in JEdit?

Regards,
Srikrishnan
Problem updating changes to a file in BufferTab mode
Submitted by tj_sony on Thursday, 3 April, 2008 - 05:41
I have two buffertabs 123.xml and 123.tex. Through some internal processing when I do some changes to 123.xml it gets reflected in 123.tex. But the following pop up menu comes only when I go to some other window and come back.

Files Changed on Disk
The following files were changed on disk by another program:
Automatically reloaded:
C:\123.tex

My problem is why I need to go to someother window and come back to see the above pop up and also for the 123.tex file to get updated.
Disabling auto-indentation entirely?
Submitted by lisaklein20 on Friday, 4 April, 2008 - 13:52
I've been using JEdit for a few weeks now and have found it to be nearly perfect in almost every respect... however, I MUST find a way to disable the auto-indenting behavior!

Is there a setting that will allow ENTER to simply maintain the amount of indentation of the current line? Currently, the editor is frequently re-aligning, second-guessing, and overriding my tabbing. In general, I would really prefer additional control over indentation, rather than of having the editor force me into its own predefined indentation scheme (which suits my needs 90% of the time, but not always).

Any suggestions?
Korean Input broken on Mac OS X Leopard
Submitted by ssk on Friday, 4 April, 2008 - 21:07
When I type Korean, the each alphabet(Korean jamo) is separated instead of combined.
However when I copy Korean letters, it's ok.

jEdit version: 4.2 final
OS: OS X Leopard
Java version: 1.5.0_13-b05-237 Standard Edition

I remember that it was ok on OS X Tiger.
Updating jEdit to a newer Version + IDE question
Submitted by AzizLight on Sunday, 6 April, 2008 - 17:53
Hi everybody,
I have jEdit 4.3pre12 installed right now, but I don't remember if I installed it using the Java Installer or the regular Windows .exe installer. Now I want to installer version 4.3pre13, and I don't want to lose all my configuration stuff, what should I do.
A hard way to do it would be to take note of all the configurations I made, uninstall everything and then reinstall it; but if I could avoid this it would be amazing. Do you have a suggestion?

I also have another little question. I use jEdit for Web developpement mainly, and I use eclipse for Java. However, I'm in love with jEdit, is there a ways to make it a pseudo replacement for Eclipse? I know I can't integrate all the features of Eclipse in jEdit, but again, I don't want to. What I want is:
-all the errors to be underlined as I type or after I save and tell me what the error might be (and eventually give me a list of solutions) (like in Eclipse)
-integrate a compiler and be able to test my programs fast (like the Run button in Eclipse)
I already managed to reproduce all the other features I'm interested in (i.e. ErrorList Plugin) except those two, which unfortunately are the ones I'm the most interested in...

Thanks in advance,
Aziz
P4Plugin fails to load in 4.3pre13
Submitted by psiegel on Tuesday, 8 April, 2008 - 12:40
Trying to load P4Plugin 0.2.4 in jEdit 4.3pre13 gives the following error:

Cannot start: java.lang.NoSuchMethodError: org.gjt.sp.jedit.jEdit.addMode(Lorg/gjt/sp/jedit/Mode;)V
Try updating to a newer version of the plugin.

I'm using the following versions of the dependent plugins:
CommonControls: 0.9.4
Console: 4.3.7
ErrorList: 1.7
ProjectViewer: 2.1.3.7

If this is not the correct place to report this bug, where should I report it? I tried emailing the address listed for the author (Marcelo Vanzin), but it bounced.
File to open automatically in buffertab mode
Submitted by tj_sony on Wednesday, 9 April, 2008 - 05:52
I have a file opened in buffertab mode - C:\temp\123.aaa.

Through some internal processing, when I click on C:\temp\123.aaa, an empty file - C:\temp\123.bbb gets created in the folder C:\temp\.

But what I need is, the empty file 123.bbb which gets created in the folder C:\temp\ should open automatically in buffertab mode instead of me doing it manually.

Could someone please help me with this.
Superscript plugin with javascript (Rhino) fails to work
Submitted by phade on Wednesday, 9 April, 2008 - 16:55
Hello to all users of this excellent editor Smiling

Trying to get SuperScript plugin to work with Rhino:

jEdit4.3pre13 with Java 1.6.0

- Downloaded Rhino 1.7R1 and put the jars js.jar and js-14.jar to ~/.jedit/jars
- Ran jedit from the shell (in order to get output to debug)
- Set superscript script mode to javascript and tried to run print("Hello"), no output in superscript plugin but shell displayed error


java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;

- googled and found that I probably should use newer bsf (2.4) (SuperScript has bsf 2.3 included and documentation also states that bsf 2.3+ can be used)
- downloaded newer bsf 2.4.0 and replaced the one in ~/.jedit/jars
- started jedit, it started but displayed error in shell:

7:24:47 PM [error] AWT-EventQueue-0: log4j:WARN No appenders could be found for logger (org.apache.bsf.BSFManager).
7:24:47 PM [error] AWT-EventQueue-0: log4j:WARN Please initialize the log4j system properly.

- tried javascript engine again and got output in superscript

org.apache.bsf.engines.javascript.JavaScriptEngine

- also beanshell engine in superscript did not worked anymore (worked fine with superscript included bsf 2.3) and output to superscript window:

bsh.util.BeanShellBSFEngine

- googled and found out that bsf 2.4.0 needs new common-logging.jar from apache commons, downloaded it (commons-logging-1.1.1.jar) and placed in ~/.jedit/jars

- no change still the error in shell and superscript engines fail to work
- decided to try some manual java trickery:

loaded jedit like this:

java -cp jedit.jar:commons-logging-1.1.1.jar:bsf.jar:bsh-2.0b4.jar:js.jar:js-14.jar org.gjt.sp.jedit.jEdit

(in actual command correct jar paths of course were used)

- that way I got no errors on startup, beanshell engine worked in superscript but rhino javascript (ran print("Hello") still failed displaying:

ReferenceError: "print" is not defined.

and shell displayed:

7:49:35 PM [error] SuperScriptPlugin: JavaScript Error: Internal Error: org.mozilla.javascript.EcmaError: ReferenceError: "print" is not defined.
7:49:35 PM [error] SuperScriptPlugin: org.apache.bsf.BSFException: JavaScript Error: Internal Error: org.mozilla.javascript.EcmaError: ReferenceError: "print" is not defined.


So has anyone got newer bsf or Rhino javascript engine to work with SuperScript? I know that some have got bsf 2.4.0 to work with superscript 0.5pre but I can not find this pre version anywhere.


PS: the shell outputted of course more in all cases but I included only relevant lines in the post. If you want to see more just let me know.

All the best,
Villu
Catalog problem in Linux Environment
Submitted by srikrishnan on Tuesday, 15 April, 2008 - 17:54
Hi All, I am using JEdit both in my windows as well as Ubuntu OSs. The same XML file vadlidates against it DTD by the mentioned catalog perfectly. But in Linux version it wont work. I have changed the path also from drive based windows platform to Folder based Linux platform in my catalog file. below is my catalog line: below is the first 2 lines in my errorlist window in JEdit: /media/hdd4/Journals/CUP/AHY/DC/S0667237807000000jra.xml (370 errors, 0 warnings) 2: java.lang.ArrayIndexOutOfBoundsException: 5 Can anybody help me to sort out the catalog problem? Thanks in Advance, Srikrishnan
Interface becomes blank during external processing
Submitted by tj_sony on Thursday, 17 April, 2008 - 10:27
In my below contents, please substitue '[' and ']' with 'open angle bracket' and 'close angle bracket' respectively.

Contents of my jedit_gui.props is as follows
#{{{ process menu
process=aaa \
bbb \
ccc \
ddd \

Contents of my actions.xml is as follows
[ACTION NAME="aaa"]
[CODE]
view.selectProcess("aaa",buffer);
[/CODE]
[/ACTION]

[ACTION NAME="bbb"]
[CODE]
view.selectProcess("bbb",buffer);
[/CODE]
[/ACTION]

[ACTION NAME="ccc"]
[CODE]
view.selectProcess("ccc",buffer);
[/CODE]
[/ACTION]

[ACTION NAME="ddd"]
[CODE]
view.selectProcess("ddd",buffer);
[/CODE]
[/ACTION]

Contents of my View.java is as follows
public void selectProcess(String action,final Buffer buffer) throws IOException
{
...
}

From my customized jedit.jar, when I select anyone of the 4 menubar options (i.e., either aaa, bbb, ccc or ddd), its respective external process happens. But during the happening of the process, the jedit userinterface becomes blank. And till the external process for the respective menubar option is completed I cannot do anyother process on the jedit userinterface.

I think to solve this problem, I need to use Multithreading. Could anyone please tell me where and how do I use Multithreading concept in my above program.
JDialog modal doesnt seem to work in bsh macro
Submitted by drefty on Thursday, 17 April, 2008 - 12:54
Does anyone have a script that demonstrates how to use a Modal dialog from within a Beanshell macro?

Problem: I am trying to get user input in a beanshell script and set a variable based on that input. The problem is when I set modal=true for the JDialog box, the JDialog no longer disposes after presses of "OK" or "Cancel". The dialog just sits there and won't go away, therefore I cannot capture the result and set the variable.
User login
Browse archives
« March 2008 »
MoTuWeThFrSaSu
 
1
3
4
6
7
9
10
11
19
21
22
23
26
27
28
 
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   83281
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293