jEdit Community - Resources for users of the jEdit Text Editor
Associating Files With jEdit
Submitted by doggroomer on Monday, 20 August, 2007 - 18:07
I really like using jEdit. It is a wonderful piece of software.
But with version 4.2 there is no way to associate file types with jEdit.
I was looking for a way to associate file types with jEdit in Windows.
Windows will not let you associate an executeable ".jar" file with a file type.
I like the function in windows of just double clicking on the file name and
having the file load in a particular application. When a file is double clicked
in Windows the file name is passed to the program associated with that file.
From some simple testing I knew that jEdit would accept a command line argument
with the file name in it. So all you have to do is create a simple executeable
file that will pass its command line arguments to jEdit and load jEdit. I did
this using Visual Studio 2005.


Create a new windows application and name it "jEdit".

Make the Icon for the executeable
In the Solution Explorer right click on the jEdit project and select
"Properties".
In the main screen on the left hand tab section choose the "Application"
tab.
Under icon browse to the jEdit icon saved wherever jEdit was installed on
your computer.

Add this code in the form load event

Try
Dim jFile As String = ""
If My.Application.CommandLineArgs.Count = 0 Then
'There are no command line arguments
'So there is no File Name supplied
'Will just load Jedit when .exe is double clicked
jFile = Nothing
Else
'A file associated with this appliction is doubled clicked
'The file name is passed in the first command line argument
'Enclose filename in quotation marks in case of spaes in file name
jFile = Chr(34) & My.Application.CommandLineArgs.Item(0) & Chr(34)
End If
Dim applicationName As String = "C:\Program Files\jEdit\jedit.jar"
Dim jProcess As New System.Diagnostics.Process
jProcess.StartInfo.FileName = applicationName
jProcess.StartInfo.Arguments = jFile
jProcess.Start()
jProcess.Close()
Catch ex As Exception
MessageBox.Show(ex.Message, "jEdit Load Error")
End Try
Me.Visible = False
Me.Close()

The "C:\Program Files\jEdit\jedit.jar" is installation location for the jEdit
executeable. So change this as necessary.

Build the project

Navigate to the Visual Studio 2005 project folder for the jEdit project you
created and locate the executeable created after the build.

Save the ".exe" in the jEdit installation directory.

You now have a "jEdit.exe" that you can associate file types too.
no answer first time(s) - why don't C+c and C+v work in ubuntu as they should
Submitted by mamboze on Monday, 20 August, 2007 - 05:39
Well, the title says most of it. I have used jEdit on win xp before, great editor, now on ubuntu, still a great editor but with one irritating hassle, C+c does a cut instead of a copy and leaves 'c' behind, C+v pastes and adds a 'v'. OK, I can use C+insert and S+insert,these work OK but these are listed only as alternative shortcuts in Options/Shortcuts.

Sure, jEdit rocks but it could rock a bit better for me if these shortcuts worked as designed and specified in the relevant Options section.

I'm not sure whether this is a bug (unlikely) or that I've overlooked some switch or other. Has anybody else experienced this problem?
no answer first time(s) - why don't C+c and C+v work in ubuntu as they should
Submitted by mamboze on Monday, 20 August, 2007 - 05:37
Well, the title says most of it. I have used jEdit on win xp before, great editor, now on ubuntu, still a great editor but with one irritating hassle, C+c does a cut instead of a copy and leaves 'c' behind, C+v pastes and adds a 'v'. OK, I can use C+insert and S+insert,these work OK but these are listed only as alternative shortcuts in Options/Shortcuts.

Sure, jEdit rocks but it could rock a bit better for me if these shortcuts worked as designed and specified in the relevant Options section.

I'm not sure whether this is a bug (unlikely) or that I've overlooked some switch or other. Has anybody else experienced this problem?
Why jEdit Rocks
Submitted by JonathanAquino on Thursday, 16 August, 2007 - 04:31
I've just written a rave review about our favorite editor, complete with numerous screenshots about the parts of it that I find most impressive:

http://jonaquino.blogspot.com/2007/08/why-jedit-text-editor-rocks.html
Autocomplete not working
Submitted by sgtrock123 on Sunday, 12 August, 2007 - 19:03
Is there a known problem with 4.3pre9 not autocompleting HTML/XML tags? I upgraded to 4.3pre9 quite a while back, and though I can't confirm that it was the upgrade that removed the autocomplete it does seem like it has been "quite a long time" since I had autocomplete working in jEdit. Is there a configuration change that I can make?

To be clear, I'm not talking about the autocompletion of words in the buffer as provided by the TextAutocomplete plugin. I'm looking for the ability to type in <foo> and getting <foo>(cursor here)</foo> instead, with indention for block-level elements.

jEdit "used to" have this feature, and I haven't seen it in a long time. Any help greatly appreciated.

Thanks,
-dave
Problems with C+c and C+v
Submitted by mamboze on Saturday, 11 August, 2007 - 10:08
Hi,
I recently migrated from win xp to ubuntu. I installed jEdit for work with ruby on rails and things are fine except for one little problem - isn't there always one.

The C+c sequence doesn't copy, it cuts and leaves a 'c' in the text, similarly with C+x, an 'x' is left. C+v copies and then appends a 'v'. The DELETE/INSERT alternatives work OK. This is no big deal but the C+c etc keystrokes work elsewhere in ubuntu so why not in jEdit.

Any suggestions on how this might be resolved would be much appreciated
Problems with C+c and C+v
Submitted by mamboze on Saturday, 11 August, 2007 - 09:58
Hi,
I recently migrated from win xp to ubuntu. I installed jEdit for work with ruby on rails and things are fine except for one little problem - isn't there always one.

The C+c sequence doesn't copy, it cuts and leaves a 'c' in the text, similarly with C+x, an 'x' is left. C+v copies and then appends a 'v'. The DELETE/INSERT alternatives work OK. This is no big deal but the C+c etc keystrokes work elsewhere in ubuntu so why not in jEdit.

Any suggestions on how this might be resolved would be much appreciated
Problems with C+c and C+v
Submitted by mamboze on Saturday, 11 August, 2007 - 09:52
Hi,
I recently migrated from win xp to ubuntu. I installed jEdit for work with ruby on rails and things are fine except for one little problem - isn't there always one.

The C+c sequence doesn't copy, it cuts and leaves a 'c' in the text, similarly with C+x, an 'x' is left. C+v copies and then appends a 'v'. The DELETE/INSERT alternatives work OK. This is no big deal but the C+c etc keystrokes work elsewhere in ubuntu so why not in jEdit.

Any suggestions on how this might be resolved would be much appreciated
SuperAbbrevs missing options
Submitted by sgtrock123 on Saturday, 11 August, 2007 - 00:09

Hi all,

I've installed and used SuperAbbrevs in the past, and recently re-installed it on a new machine after upgrading jEdit to 4.3pre9. I noticed that the option to "Expand Abbreviation" is now gone, and instead the only option available is to bring up a dialog box to type in the shortcut. Why was this removed? It seems cumbersome to me to force a mode switch, breaking the flow as I'm typing. It's simply not as fluid as the type-then-expand strategy.

This happens in the two latest versions available on SourceForge, so I reverted all the way back to 0.01 and it has the "Expand Abbreviation" option. However, it will not run under 4.3, presumably the jEdit API has changed (I'm not a jEdit expert), as attempting to tab from the inside of the snippet to the end throws the following error:

java.lang.NoSuchMethodError: org.gjt.sp.jedit.textarea.JEditTextArea.getBuffer()Lorg/gjt/sp/jedit/Buffer;
	at superabbrevs.SuperAbbrevs.nextAbbrev(SuperAbbrevs.java:155)
	at SuperAbbrevsPlugin.nextAbbrev(SuperAbbrevsPlugin.java:39)
	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.invokeMethod(Reflect.java:134)
	at bsh.Reflect.invokeStaticMethod(Reflect.java:98)
	at bsh.Name.invokeMethod(Name.java:874)
        ... (40 more lines snipped)

(I'm using Java 1.5.0_06 on XP SP2, in case this is a bug I'm not aware of)

Any plans to bring this feature back, or is it gone for good?

Thanks...

PHP double click behaviour
Submitted by misterv on Wednesday, 1 August, 2007 - 15:28
Similar to the post below (http://community.jedit.org/?q=node/view/3605) but I want to change the double click behaviour for php files so that the dollar sign is selected when double clicking as it's driving me nuts when I want to select a variable. I tried following these instructions in the php.xml mode file but got an error.

# copied and pasted from the mentioned post
2. Create a mode file (as you've suggested) for MEL (which exists already on www.highend3d.com by the way, just search for jedit). Inside the < PROPS > tag, insert the following line:
< PROPERTY NAME="noWordSep" VALUE="_$" / >

How can I change the behaviour? What would I modify in the php.xml file? Thanks!
Recommended Versioning PlugIn for RubyOnRails?
Submitted by MaryK on Saturday, 28 July, 2007 - 12:41
Could you please recommend a plugin for RubyOnRails development in JEdit?
Thank you!
select (hightlight) line when clicking / dragging line-numbers
Submitted by Markus.Daum on Friday, 27 July, 2007 - 11:31
Hi,

Is there a way to connect a (LMB) click onto the line-number display area with the "Select Line" command? This is sort of a standard behavior for many other text-editors, but does not seem to work in jedit. To begin with, I wouldn't even know how to detect a (LMB) click in this area at all... Smiling

Ideally I would also like to be able to click-drag in the line-number area and have lines of my text selected / highlighted accordingly. Hope this does make some sense?

Thanks,
Markus
Large files?
Submitted by tclwarrior on Thursday, 26 July, 2007 - 06:36
How can I can edit large files on jedit 100+ MB
Is it even possible?
Whats the file size limit on jedit?

By the way I am running 4.3pre9
And I checked the help I found how I can improve the handling of jedit by
passing by -mxXXm to the command line. (propably java -mx128m ???)
I am running windows and I have no clue how to do this, I just click on
the jedit jar and it starts!

I also downloanded the JMstats plugin and it tells me that my max memory is 64 MB
The file I was trying to open was 120 MB
Does this mean that jedit need to load all the file in memory to edit it?
This doesnt feel efficient!
Large files?
Submitted by tclwarrior on Thursday, 26 July, 2007 - 06:35
How can I can edit large files on jedit 100+ MB
Is it even possible?
Whats the file size limit on jedit?

By the way I am running 4.3pre9
And I checked the help I found how I can improve the handling of jedit by
passing by -mxXXm to the command line. (propably java -mx128m ???)
I am running windows and I have no clue how to do this, I just click on
the jedit jar and it starts!

I also downloanded the JMstats plugin and it tells me that my max memory is 64 MB
The file I was trying to open was 120 MB
Does this mean that jedit need to load all the file in memory to edit it?
This doesnt feel efficient!
APB: Specman-E (a hardware verification language) syntax highglighting mode created
Submitted by LDiracDelta on Tuesday, 24 July, 2007 - 14:24
FYI, I've created a Specman syntax highlighting mode for JEdit here:
http://ldiracdelta.redirectme.net/wiki/index.php/Specman_JEdit_Mode

- L{ DiracDelta( t ) }
Creating uneditable blocks of text
Submitted by david_kightley on Tuesday, 17 July, 2007 - 19:02
I want to create a mode which will highlight a block of text and make it read-only. Is this possible?

Basically, what I am looking to do is put text into a file that are comments which the user cannot change. It would look something like this...

**Editable text**
Normal text......
%% This comment cannot be changed or deleted %%
More text here that the user can enter or change.
.....

I would want the text between the %% symbols (or whatever) and the delimiters themselves to be fixed so that they cannot be changed from within JEdit.

Can parts of the edit window be made uneditable?

Thanks in advance

-- David Kightley

How to chaging default explicit fold characters
Submitted by thebugslayer on Thursday, 12 July, 2007 - 17:30
Hi,

Is there way to change default explicit fold marker "{{{" and "}}}" to something custom?

thanks
tbs
change double-click text highlighting behaviour
Submitted by Markus.Daum on Thursday, 12 July, 2007 - 13:57
Hi,

I wonder if / how it is possible to change the behaviour of jedit when a word in the text edit pane is (LMB) double clicked. Currently it does select / highlight only coherent letters and numbers, but ignores any special characters (so that these characters will not be part of the selected text).

This is a problem for me, because I'm currently coding in MEL (Maya's Embedded Language), where all variable names have to be defined with a leading dollar sign, like "$myVariableName" for example. When I double click on such a variable name, everything but the special character(s) are selected / highlighted, so in my case only "myVariableName", but not "$myVariableName". How / where can I change this behaviour, i.e. how could I add the dollar sign to the characters that are considered by this double click selection?

Cheers!
Markus
Anti-alias all text in the editor on Mac OS X
Submitted by simonvwade on Thursday, 12 July, 2007 - 00:17
Add the following two lines to the Properties dict tag in jEdit.app/Contents/Info.plist:

<key>swing.aatext</key>
<string>true</string>

For example:

<key>Properties</key>
<dict>
<key>apple.awt.textantialiasing</key>
<string>true</string>
<key>apple.laf.useScreenMenuBar</key>
<string>true</string>
<key>apple.awt.antialiasing</key>
<string>true</string>
<key>swing.aatext</key>
<string>true</string>
</dict>
custom syntax coloring
Submitted by mituller on Tuesday, 10 July, 2007 - 21:24
Although JEdit takes care of most of the coloring of syntax that I need, I would like to change a few things, such as
User login
Browse archives
« July 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
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   109183
Context Free Art (*.cfdg)   0.31   46075
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