jEdit Community - Resources for users of the jEdit Text Editor
Archives
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.
jEdit 4.4.1 is out!
Submitted by Vampire on Tuesday, 21 June, 2011 - 10:54
I proudly present 4.4.1, the first official stable release of the
4.4 series of jEdit.

I want to appologize again for the confusion that arised when the faulty
4.4 release was created and then taken back down. To avoid confusion
about what version someone is using, the 4.4 release is skipped
completely.


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:
http://www.jedit.org/index.php?page=download


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


For those who want to stick with the 4.3 series of jEdit we also
created a new bugfix release 4.3.3. (see separate announcement)

Have fun with the new release.
to edit and drag - drop text with ease
Submitted by zhangweiwu on Saturday, 2 July, 2011 - 13:16
Hello. This feature request is best explained by example. I have a text file, see below:

    THE PROJECT                                   THE FOUNDATION

In the begining                         An independent non-profit .......
  The project .... [terse edited text   ........ and we .........
  with /emphasizes/ and references
  to wikipedia.]

Now                                     MEMBERSHIP
  .......... [edited text to mention      The membership ..... [terse edited
  reports]                                text about membership]
     Report 1...                              Membership 1
     Report 2...                              Membership 2
     Report 3...                              Membership 3
                                              Membership 4
WE BELIEVE IN                                 Membership 5
  Freedom and community
    [Even terser edited text with       FINANCE
     references to the GNU project.]      [a short explanation how GNOME
  Collaboration and meritocracy           foundation is financed and list of
    [terse edited text that emphasises    financial reports.]
    digits, numeric facts and links to
    get-involved section]               LEGAL Information
  People-centered                         [A list of references to legal
    [Lorem ipsum dolor sit amet,          documents.]
    consectetur adipisicing elit] 

You can see the text file is formatted using spaces. Only in "overtype mode" can such a text file be edited, but even though it's not convenient. Suppose I want to remove "Membership 5" and let every other line in the right column move upward one line, it must be hell of trouble to do it. A easy way is to add a feature to select a rectangle in the text file, and the editing area is in the rectangle. If I select the whole right column in a rectangle, then, editing only affects characters in that area. Removing a line, for example, makes every below other line lifts up in the rectangle, but outside does not move. Perhaps this feature isn't used much, but having this feature created a new way of doing text editing, people may find interesting ways to use text editor as a mind-map, an organizational-chart editor and a web layout editor without having to use a graphical tool, and being able to send charts through emails. This may be further enhanced with the use of box-drawing characters. Any thoughts?
CCS-C (CCS-C.xml v1.1 by Paul Hutchinson)
Submitted by Paul Hutch on Sunday, 3 July, 2011 - 15:45
A commando file to compile C code for Microchip PIC micro-controllers using the Custom Computer Services PIC C compiler. Options and defaults are based on CCS "C" Version 4.121 and the February 2011 edition of the reference manual. It has only been tested with the PCM flavor of the compiler, but according to the users manual it should work for the PCB, PCH and SXC flavors as well. Version 1.1 Adds quoting to handle spaces in path names.
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   108249
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309