jEdit Community - Resources for users of the jEdit Text Editor
Archives
Autoformat django and html
Submitted by donaldhorton on Friday, 13 May, 2011 - 05:15
I have html files that contain both django and html tags. Does anyone know of a plugin for jedit that autoformats such files?
None of the beauty (http://plugins.jedit.org/plugins/?Beauty) plugins work well. The html:beauty formats (indents nested tags) the html, but mangles the django. Others beauty options don't format the html.

thx
Create a keybinding
Submitted by flebber on Tuesday, 17 May, 2011 - 11:58
Is it possible to create a key binding? I want to create a key binding for Save As...
Buffer List - Rigth Click Close on Folder - not working.
Submitted by rluiten on Wednesday, 18 May, 2011 - 04:38
I use to use this quite a bit, to close a folder of files.
By right click close on a folder in Buffer List it tried to close all files in that folder.
If none were changed it just closed them, if some were changed it prompted me for Cancel save or close anyway from memory.

Yes its been ages, but I kept forgetting about the problem and the next time I hit it being in the middle of stuff again and not querying again.

I believe the change in behaviour started before 4.3 final...
I do notice that right click on a folder causes the title bar of jedit to cycle though all the files in the folder quickly and then show the menu.

I would appreciate any tips or ideas, not sure i feel comfortable actually trying to get into jedit code for this.
Leaving in leading whitespace when breaking text line
Submitted by rps on Saturday, 21 May, 2011 - 11:33
I'm a new jEdit user and have just run across a "feature" that is causing me problems. When I position into a line of text containing space characters, with the cursor positioned immediately before a space charcter and then hit ENTER to break the line, the leading spaces (regardless of how many space characters there are) are removed from the new line. I work in a transaction processing environment and often have to parse message trace logs where space characters are just as important as any other character. How to I get jEdit to leave the spaces in the new line?
RegEx in UnrealScript EditMode
Submitted by MonsOlympus on Sunday, 22 May, 2011 - 15:46
Okay so Ive been at this for a good week trying to work things out, using regex buddy for testing against java but it seems the version that it uses is different than what the jedit modes use.

Now my issue is in matching braces, now I have seen that this can be tricky using regex and perhaps using some other method might be the go but Im not even sure where to start there. I am willing to try anything even if it includes having to write a plugin or extending jedits functionality as this might head in that direction at some point.

Ive tried various regex's to try and match the cpptext blocks, now to explain it, cpptext blocks are C++ written inside UnrealScript source and Im wanting to highlight them as C++ by importing parts of that mode in instead of adding the keywords in the UnrealScript list. The reason for this is UnrealScript while sharing similarities to C++ doesnt allow the use of keywords such as void, null or virtual for instance.

As an example:

class foo extends bar;

var newfoo newb;

cpptext
{
virtual void BeginDestroy();
virtual UBOOL IsReadyForFinishDestroy();

UBOOL IsHiddenEdAtStartup() const
{
return bHiddenEd;
}
}

Which shouldnt be that hard to do since the braces are always matched and cpptext resides outside any nest. The tricky part is there is also structcpptext which resides in 1 nest always and can contain nested braces but each only contain a nest depth of one, being functions/constructors.

Any help would be greatly appreciated because at this point I feel like Im bangin my head against a wall. Thanks.
How to code fold so that it also folds the comments that are inside the fold?
Submitted by rickcr on Wednesday, 25 May, 2011 - 15:05
I have folding set to 'sidekick.' In a javascript file if I have

function foo() {
/*
bla
bla
*/
}

it shows the fold for foo() but when clicked it doesn't hide the comments. since the comments are inside the function I'd expect them to be hidden also. How can I achieve this?

Thanks
Can't edit HTML files anymore
Submitted by evigmostad on Friday, 27 May, 2011 - 14:29
I can edit parts of the file (inside a comment). I can delete, but can't type new text. If I set the buffer to mode shtml it works. But I can't do it at a global level.

This is what I get when typing.

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at org.gjt.sp.jedit.Mode.createBracketIndentRules(Mode.java:427)
at org.gjt.sp.jedit.Mode.initIndentRules(Mode.java:365)
at org.gjt.sp.jedit.Mode.getIndentRules(Mode.java:311)
at org.gjt.sp.jedit.buffer.JEditBuffer.getIndentRules(JEditBuffer.java:2804)
at org.gjt.sp.jedit.buffer.JEditBuffer.getIdealIndentForLine(JEditBuffer.java:1115)
at org.gjt.sp.jedit.buffer.JEditBuffer.indentLine(JEditBuffer.java:997)
at org.gjt.sp.jedit.textarea.TextArea.insertTabAndIndent(TextArea.java:4421)
at superabbrevs.SuperAbbrevs.tab(SuperAbbrevs.java:138)
at SuperAbbrevsPlugin.tab(SuperAbbrevsPlugin.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134)
at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:98)
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:871)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80)
at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186)
at org.gjt.sp.jedit.BeanShellFacade.runCachedBlock(BeanShellFacade.java:225)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:423)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:73)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:352)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:317)
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:197)
at org.gjt.sp.jedit.input.AbstractInputHandler.processKeyEventKeyStrokeHandling(AbstractInputHandler.java:401)
at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(InputHandler.java:151)
at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(TextArea.java:4625)
at java.awt.Component.processEvent(Component.java:6045)
at java.awt.Container.processEvent(Container.java:2045)
at java.awt.Component.dispatchEventImpl(Component.java:4629)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1881)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:757)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1033)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:900)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:721)
at java.awt.Component.dispatchEventImpl(Component.java:4499)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Window.dispatchEventImpl(Window.java:2517)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Man, I'm sure glad jEdit is still around
Submitted by rickcr on Friday, 27 May, 2011 - 16:06
Years ago I used jEdit and loved it. Over time, I drifted away from it thinking I could be just as productive in vim (then TextMate on my Mac) then other editors like KomodoEdit etc. The bottom line is jEdit really rocks and I'm back to using it as my full time editor on mac and widows. The fact that it's so powerful with the plugins and works cross OS is a huge plus. Just a big thanks to whoever is still involved in this project.
Buffersets in spit view
Submitted by Hans_Bauer on Saturday, 28 May, 2011 - 09:31
With jEdit 4.3.x having a split-view it was possible to have different buffers in each split. With 4.4pre1 under Win7x64 this possibility seems to be gone. Can anyone help?

Thanks!
Mac OS X - change of behaviour
Submitted by carlob on Tuesday, 31 May, 2011 - 14:49
Hello,
last week, suddenly, my jEdit did not start anymore with a doubleclick, so I downloader a new version -- not a good idea, usually it's better to know why these things happen --, anyway after updating my usual shell scripts to open files on the command line do not work anymore. I usually do:

java -jar /Applications/jEdit.app/Contents/Resources/Java/jedit.jar -reuseview $1

to open a file in a new tab on jedit. Now I get an error instead:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file

But why it runs well when I double click the application?
May we have back my command line?
c

Thank you for any help provided.
Code Alignment
Submitted by CJreige on Wednesday, 1 June, 2011 - 21:55
Is there any way to vertically align code by any character such as equals and period?
Large XML file, with empty text content (MTdict.zip v1 by Mike Maxwell)
Submitted by McSwell on Friday, 3 June, 2011 - 03:46
A large XML file, to illustrate the problems with jumping around such a file when Sidekick parsing is turned on. See the thread "Sidekick file size setting" of 1 June 2011.
optimizing for osx/mac
Submitted by starpause on Monday, 6 June, 2011 - 01:04
hi all, love jEdit and i've tried all the editors =)

but i'm wondering if there's some performance optimizations i may be missing for osx. mostly, i want to run jEdit on the background so it opens any text file instantly (even after i've quit). i also want to be sure i'm running jEdit with the most recent version of java on my machine and with enough ram. any other ideas for getting optimal performance on a macintosh?

if it matters i'm running osx 10.6.7 and jedit 4.4pre1.

thanks!
jordan
Drag and drop
Submitted by Perkin5 on Tuesday, 7 June, 2011 - 17:42
I have just started using jEdit and love it but I'm having trouble with drag and drop. If I drag an image into the text area, I don't get the same effect as with, say, Dreamweaver, where an img src code snippet appears in the text.

Is that meant to happen and what am I doing wrong?
Search and replace in all buffers
Submitted by Hans_Bauer on Friday, 10 June, 2011 - 07:50
When having several *.prn-files/buffers (containing text only) open within one instance of jEdit and trying to search and replace e.g. "," by "." in all buffers i get the error

"The specified search file set contains no files. Please ensure that the file name filter and directory to search (if applicable) are set correctly"

The error occurs with jEdit 4.4pre1 under Win7x64
SideKick with a "stop parsing" button (SideKick.jar v0.1 by Shlomy Reinstein)
Submitted by shlomy on Friday, 10 June, 2011 - 12:54
This is a version of SideKick that has a "stop parsing" button next to the mode options button in the dockable. The "stop parsing" button is meant for very large files, whose parsing may take a lot of resources and may cause performance problems in jEdit.
Default character set (encoding) per server
Submitted by 1234ru on Wednesday, 15 June, 2011 - 12:30
Hi, guys.

I'm enjoying using jEdit and wanted to know one thing.

I work with many remote servers which often have files in different encodings.

Can I somehow determine default encoding per server?
Can't Download and Install FTP Plug-in - Issues on a Mac
Submitted by kristenannie on Wednesday, 15 June, 2011 - 18:36
Hi there,
I have used JEdit for years on a Mac without any problems. A few weeks ago, suddenly, the file browser stopped working for browsing files on remote server with the ftp plug-in. I thought maybe I needed to just upgrade JEdit or something, so I downloaded jEdit 4.3.2 and installed it.

I went to start setting up my environment with the first thing being downloading the FTP plug-in again. The only problem is that I can't download the plug-in. It looks like it tries to do it and then gives me a message that says, "Error while downloading the plugin, please try another mirror. Operation timed out." I have tried quiet a few other mirrors, but still get this message. Any ideas?

JEdit is my preferred program to use to edit files on my remote servers, and I'd really like to get it working again.

Thanks!
Kristen
How to Change color/font schemes?
Submitted by dking on Wednesday, 15 June, 2011 - 20:29
Can anyone explain or point me to where I can find information on how to change/create jEdit color and font schemes? I've searched jEdit's forum and wiki, but found nothing. Thanks.
jEdit 4.3.3 is out!
Submitted by Vampire on Tuesday, 21 June, 2011 - 10:51
I proudly present 4.3.3, the third bugfix release of the 4.3 series of jEdit
for those that want to stick with the 4.3 series of jEdit.

We also release 4.4.1, the first stable release of the 4.4 series now.
(see serparate announcement)


Here are some convenient links to see the live state of major problems:

- Bugs which are marked as "severe":
http://sourceforge.net/tracker/?group_id=588&atid=100588&status=1&artgroup=101607

- Bugs which are marked as "regressive":
http://sourceforge.net/tracker/?group_id=588&atid=100588&status=1&artgroup=619797


Volunteers are always welcome to fix these bugs:
http://www.jedit.org/index.php?page=devel


That being said, here is the download link:
https://sourceforge.net/projects/jedit/files/jedit/4.3.3/


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


Have fun with the new release.
User login
Browse archives
« May 2011 »
MoTuWeThFrSaSu
 
2
4
5
7
8
9
10
11
12
14
15
16
19
20
23
24
26
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   107801
Context Free Art (*.cfdg)   0.31   46070
BBEdit scheme   1.0   18606
JBuilder scheme   .001   18507
ColdFusion scheme   1.0   18040
R Edit Mode - extensive version   0.1   17487
Advanced HTML edit mode   1.0   16221
Matlab Edit Mode   1.0   16085
jEdit XP icons   1.0   15244
XP icons for jEdit   1.1   14308