jEdit Community - Resources for users of the jEdit Text Editor
Archives
Autoindent in jEdit help
Submitted by groland on Saturday, 19 May, 2012 - 16:51
I am brand new to jEdit, and I am using it to write code in java. I thought it auto-indented when typing, so that code blocks would be correctly indented. I cannot get it set up properly to do this.

How is this accomplished?

Thanks,

George

MacBook Pro, Mas OS X 10.6.8
PHP Getters / Setters (PHP_Get_and_Set_Methods.bsh v1.0 by Thomas Van Steenwinkel)
Submitted by jvgamers on Monday, 21 May, 2012 - 14:01
This macro allow you to generate Getters / Setters and Constructor for PHP File. It is based on official Get and Set Methods for Java, improved for PHP use.
jEdit syntax highligthing
Submitted by Paula17 on Wednesday, 23 May, 2012 - 16:34
Hi,

I'm using textArea of jEdit in my application but I'm only interested in using assembly and c language. I've seen there are several types of assembly language. I'm interested in assembly language for ARM7TDMI. Which one of these languages would be the correct or the best to this kind of ARM? Could anyone help me?

Thanks in advance!

Carla
How can I capitalize first letter of a line and lowercase the rest?
Submitted by speedracer on Thursday, 24 May, 2012 - 05:32
I want to select a line of text and convert all of it to lower case except for the first letter, which I want to be converted to upper case, if it isn't already. Is there a macro to do this? All I've been able to find is the macro that capitalizes the first letter of every word, which is no good for my needs. Any help will be appreciated.
GdbPlugin for jEdit 4.5+ (GdbPlugin.jar v0.5 by Shlomy Reinstein)
Submitted by shlomy on Thursday, 24 May, 2012 - 11:40
GdbPlugin for jEdit 4.5+
Problem in file opening window
Submitted by jmmalmedy on Thursday, 24 May, 2012 - 11:52
Hi, In the file browser window, when I double-click the "roots" item, "loading" is briefly displayed but the files and directories list is never updated. If I then click the "refresh" button, the following error is reported: java.lang.NullPointerException at org.gjt.sp.jedit.browser.VFSDirectoryEntryTable.getExpandedDirectories(VFSDirectoryEntryTable.java:146) at org.gjt.sp.jedit.browser.BrowserView.saveExpansionState(BrowserView.java:147) at org.gjt.sp.jedit.browser.VFSBrowser.reloadDirectory(VFSBrowser.java:648) 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 org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134) at org.gjt.sp.jedit.bsh.Reflect.invokeObjectMethod(Reflect.java:80) at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:855) 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.browser.VFSBrowser$BrowserActionContext.invokeAction(VFSBrowser.java:1988) at org.gjt.sp.jedit.browser.VFSBrowser$BrowserActionContext.invokeAction(VFSBrowser.java:1952) at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:212) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at org.gjt.sp.jedit.browser.VFSFileChooserDialog._init(VFSFileChooserDialog.java:363) at org.gjt.sp.jedit.browser.VFSFileChooserDialog.(VFSFileChooserDialog.java:73) at org.gjt.sp.jedit.browser.VFSFileChooserDialog.(VFSFileChooserDialog.java:57) at org.gjt.sp.jedit.GUIUtilities.showVFSFileDialog(GUIUtilities.java:940) 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 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:342) at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3249) at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3231) at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:212) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) The same problem happens in the File System Browser window. I've tried to reinstall jEdit (last version) and to delete all parameters but it does not solve the problem. Is there a way to avoid this problem, please? Thanks in advance.
Help! Can't get Python syntax highlighting to work
Submitted by kcstrom on Friday, 25 May, 2012 - 12:34
At work, others like to strip off the .py on some python files which wouldn't be a big deal, except they also have '#! python' instead of the more normal pattern of something like '#! /usr/bin/env python'. So I changed the /path/to/my/jedit/settings/catalog file to have a copy/paste of the python file mode from the /path/to/jedit/install/settings/modes/catalog file except I removed '*/' from the FIRST_LINE_GLOB so it would match both the normal and the less normal that is used at my work.

That was great - it now recognizes both file types as python. Unfortunately, I no longer have syntax highlighting for the Python edit mode. I've undone my changes, and updated from Python 4.5.0 to 4.5.1 just to make sure I hadn't modified the original catalog or did something else weird (I'm pretty sure I didn't anyway), but syntax highlighting for Python is still broken.

Please help!
OpenSCAD (scad.xml vbeta1 by Kevin Tucker)
Submitted by tuckerkevin on Friday, 1 June, 2012 - 03:29
OpenSCAD (http://www.openscad.org/) catalog line:
Tabbed windows
Submitted by Bannakaffalatta on Saturday, 2 June, 2012 - 13:09
Hi. Is there a way to have multiple files open in the same window with tabs? The way it is now you have to click the bar at the top that has the name of the current file and you see a drop down list of the other files. I would like them displayed in tabs instead. Thanks in advance.

KP>
jEdit 5.0pre1 is out!
Submitted by Vampire on Sunday, 10 June, 2012 - 19:25
Hi all,

jEdit development team now presents jEdit 5.0pre1, the first preview
development release of the 5.0.x series of jEdit.

Detailed changes can as always be found in the Change Log at http://jedit.org/CHANGES50.txt

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 bugs including the above:
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 5.0.x series (fix done, but waiting for a review):
http://sourceforge.net/tracker/?group_id=588&atid=1235750&status=1&artgroup=2546309


Have fun with the new release.
jEdit 4.5.2 is out!
Submitted by Vampire on Friday, 15 June, 2012 - 22:43
Hi all,

I proudly present jEdit 4.5.2, the latest stable release of the 4.5 series of jEdit.

Detailed changes can as always be found in the Change Log at http://jedit.org/CHANGES45.txt
This release is a bugfix release.


Volunteers are always welcome to contribute to the future of jEdit:
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.5 series (fix done, but waiting for a review) can be found at:
http://sourceforge.net/tracker/?group_id=588&atid=1235750&status=1&artgroup=2274635

Have fun with the new release.
JEdit for JavaFX 2
Submitted by bjornjon on Wednesday, 20 June, 2012 - 23:09
Hi,

I'm about to start work on a Java code editor control for a JavaFX 2 application. I need the basic stuff, syntax highlighting, text format, auto-complete.

Is anyone doing something in this direction with JEdit as the core? How much work is it, in general, to build a new GUI with these basic requirements using JEdit API as back-end?

Cheers,
Bjorn
Copy (X)HTML code to clipboard as HTML (in Windows: CF_HTML format), rather than text?
Submitted by Graham Hannington on Friday, 22 June, 2012 - 03:44
I can already select content in a web browser, copy it to the clipboard, and then, in jEdit, select "Edit > More Clipboard > Paste Special > html" to paste the HTML source of the content into jEdit. I realize that I could also use various other methods to do this (such as viewing the HTML source in the web browser, and then copying that HTML source view into the clipboard, and then pasting into jEdit without "Paste Special"), but, in many cases, I like selecting the rendered objects in the web browser (although, admittedly, selecting in the HTML source view can offer greater accuracy in terms of exactly how much you are selecting).

Okay: copying (X)HTML source into jEdit is covered.

Suppose that I edit the HTML source, and now want to copy that edited content back into the browser?

I should clarify my use case: I'm copying content from a browser-based rich text editor (specifically, the Atlassian Confluence 4 rich text editor, which is based on TinyMCE), pasting it into jEdit as HTML source, editing the HTML, and then copying'n'pasting that edited content back into the rich text editor.

Currently, copying the edited content back into the browser is a multi-step procedure, to ensure that the HTML is in the appropriate internal clipboard format (in Windows, I think this means CF_HTML), so that the content is rendered appropriately by the rich text editor, rather than appearing as text (the HTML source code):

1. In jEdit, I save the edited HTML to a file (with a file extension such as .htm or .html)
2. I open the file in a web browser (say, Firefox)
3. I select the content, and copy it to the clipboard
4. I paste the content into the Confluence rich text editor

I would rather have a "Copy Special > html" option in jEdit, hence this forum topic.

Does jEdit, or one of its plugins, already have such a feature?

If not (in which case, I guess I'll add a feature request), can anyone suggest a quicker existing non-jEdit method than the "save to .htm, select and copy" method I'm currently using? (I'm using Windows 7. I have no jEdit plugin development experience, but I have some scripting experience, and it's occurred to me to write some script "glue" to copy into CF_HTML format.)
Open in Desktop
Submitted by Arionyx on Friday, 22 June, 2012 - 15:11
I was wondering if I could find out where I need to go to configure the 'Open in Desktop' command in the FSB pane. I'm currently working with a scripting language, and for some reason, include commands won't work correctly when I run the file within jEdit, yet they work fine when I run the file from Explorer.
LucenePlugin Broken?
Submitted by cnoevil on Wednesday, 4 July, 2012 - 19:07
Greetings,

I recently updated jEdit to version 5pre1. It looks like a nice upgrade. Kudos.

Unfortunately CtagsInterface is throwing any error telling me that it is unable to load the LucenePlugin...well maybe because I didn't have it. So I went to download it along with the Markers plugin that it uses, but neither of those two plugin will open. I'm on Windows 7 btw. Anyway. I downloaded bot the zip and the tgz archive of each hoping for a solution but I am unable to extract either one. I use 7-zip which has been very dependable in every regard until now... so; anybody have some useful advice?

Thanks,
Mark
jedit has 100 or so windows open
Submitted by jeditcdnguy on Sunday, 8 July, 2012 - 00:40
Hi - I'm running jedit 4.5.2 under Ubuntu 12.04 with the latest Java.

Some time back I opened a ton of files then closed them all and now the windows won't go away. If I open jedit to edit one file, the one file is there in the first window, the file shows up alone in the drop down menu but when alt tab goes to jedit, the 100 or so windows are there.

I have tried global closing, everything. Can anyone make a suggestion, please?
jDiff: any way to invoke by cli (passing args)
Submitted by jdlx on Sunday, 8 July, 2012 - 12:15
Hi,

i'd like to use jDiff@jEdit as a external Diff tool for my GIT client app.. the question i have:
Can i invoke/start jEdit by passing the two filepathes and some arg that makes jedit diff those right away?
Something along the line:

$ /Applications/jEdit.app/Contents/MacOS/jedit -diff "$1" "$2"

thx,
Jan
electric parens, etc
Submitted by kwerle on Wednesday, 11 July, 2012 - 18:05
As a rails coder, I end up doing a bunch of
<% code %>
and also
<div ...>

There does not seem to be a way to make <>'s electric - or even <% %>. Nor can I seem to do that using superabbrev - <TAB fails to autocomplete the abbrev I made. My guess is that it's ignoring the non-alpha character left of the cursor when I hit TAB.

I'm hoping someone else has solved this. Seems like someone must have! If not, I guess I could throw some code at it...

TIA,
Kurt
Syntax highlighting alias
Submitted by John Gallant on Monday, 16 July, 2012 - 17:08
I would like to assign new filename extensions to extensions already supported. Is there a way to do this?
Specifically, I am editing Objective C files with .mm extensions which does not seem to be supported. I would like to assign this extension to .m which is supported.
Another use I find handy is to name files with a .cx extension and alias that extension to .c. This allows me to view highlighted files I do not want searched.
jediut.exe over jedit java
Submitted by DocDJ on Wednesday, 18 July, 2012 - 13:32
I installed the java version of jedit some time ago and had a lot of files in the history list. I recently installed java.exe (Windows) and now, neither of these programs can find my history list. How can I recover it (and I think I would prefer to be able to use it in the java.exe version, to become independent of changes to the java installation.
User login
Browse archives
« May 2012 »
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
9
12
13
16
18
19
20
22
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   82338
Context Free Art (*.cfdg)   0.31   46043
JBuilder scheme   .001   18487
BBEdit scheme   1.0   18107
ColdFusion scheme   1.0   18015
R Edit Mode - extensive version   0.1   17461
Advanced HTML edit mode   1.0   16194
Matlab Edit Mode   1.0   16057
jEdit XP icons   1.0   15220
XP icons for jEdit   1.1   14281