jEdit Community - Resources for users of the jEdit Text Editor
Archives
TaskList -- bug using the Gtk+ L&F
Submitted by kog on Thursday, 10 September, 2009 - 03:55
The TaskList plugin (version 1.1.0) doesn't work when the Gtk+ Look and Feel is enabled; parsing the buffer, if there are any tasks embedded in it, causes the plugin to crash, and the activity log reveals a NullPointerException, but fails to locate it. TaskList works fine under Metal; it's only under Gtk+ that it crashes.
scroll line change current line
Submitted by zelhar on Thursday, 10 September, 2009 - 10:31
I see that the commands C-" and C-/ scrolls line but keeps the current line the same, so it disappears off screen if you scroll up down too far, and then if you use UP Down or similar navigation commands the screen jumps back to the current line.

I want a scroll line that keeps the current line at the same position on the screen, meaning if I scoll one line up, the current line also move one line up. Just like C-Up is done in NP++ and Cream.
Better Caret colors
Submitted by zelhar on Thursday, 10 September, 2009 - 10:35
I wish I could chose the color of the caret and the color of the char inside the caret. So a block caret would be a real block, as it is in vim or even in konsole. The block caret should be a solid color, say black, when on empty char, and when on a char, the char is displayed against the block caret's color, like white on a black caret for example.
Getting jEdit started under Vista Home Premium
Submitted by Abbeyman on Friday, 11 September, 2009 - 09:57
Hi,

I want to operate jEdit on a Windows Vista Home Premium OS, installed latest JAVA environment and the latest jEdit. At double-klick the program does not start (even with administrator rights and simulating an WIN XP SP2 environment). Another post said you need to delete perspecitves.xml in the folder "Settings". Problem is, there is not such a folder, nor the xml-file. Does anyone has experience with operating jEdit under WIN VISTA Home Premium? It would be very sad to miss jEdit as it looks very promising.

Thanks in advance for any help & best regards from germany

Jan
4.3pre17 crashes with Snow Leopard
Submitted by phemets on Monday, 14 September, 2009 - 08:42
Hi everyone! I recently switched to Mac after having used jEdit on Windows for years. Everything worked fine with 4.2, but using the touchpad for scrolling on Mac was a real show stopper. This should be solved with 4.3pre17, so I tried to install it. The first time I tried to start the Mac app the splash screen froze. Every subsequent time it stopped one second after starting. This happens both with the Mac OS App and jedit.jar from the Java-based installer. If I try 4.3pre16 everything works fine. Deleting the configuration directory doesn't help. Any ideas? Paul Error messages when trying to start jedit.jar: Error messages:10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.View.setSplitConfig(View.java:911) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.View.(View.java:1356) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2403) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.endElement(PerspectiveManager.java:341) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:263) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2028) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:901) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:139) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.PerspectiveManager.loadPerspective(PerspectiveManager.java:104) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit$6.run(jEdit.java:3833) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(EventQueue.java:633) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) 10:33:05 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Output of "java -version": java version "1.6.0_15" Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
ftp plugin throws jsch-exception: failed to send channel request
Submitted by sven2 on Monday, 14 September, 2009 - 11:42
I'm using the latest Version of JEdit (4.3pre17) and the corresponding FTP-plugin (0.9.5) under java 1.6.0_16. When I'm trying to connect to my server using sftp, it fails reporting the following i/o error message:

Cannot list directory: java.io.IOException: com.jcraft.jsch.JSchException: failed to send channel request

Here is the excerpt of the log file:

[...]
13:23:16 [jEdit I/O #4] [message] SftpLogger: SSH_MSG_NEWKEYS sent
13:23:16 [jEdit I/O #4] [message] SftpLogger: SSH_MSG_NEWKEYS received
13:23:16 [jEdit I/O #4] [message] SftpLogger: SSH_MSG_SERVICE_REQUEST sent
13:23:16 [jEdit I/O #4] [message] SftpLogger: SSH_MSG_SERVICE_ACCEPT received
13:23:16 [jEdit I/O #4] [message] SftpLogger: Authentications that can continue: publickey,keyboard-interactive,password
13:23:16 [jEdit I/O #4] [message] SftpLogger: Next authentication method: publickey
13:23:16 [jEdit I/O #4] [message] SftpLogger: Authentications that can continue: keyboard-interactive,password
13:23:16 [jEdit I/O #4] [message] SftpLogger: Next authentication method: keyboard-interactive
13:23:16 [jEdit I/O #4] [message] SftpLogger: Authentications that can continue: password
13:23:16 [jEdit I/O #4] [message] SftpLogger: Next authentication method: password
13:23:16 [jEdit I/O #4] [message] SftpLogger: Authentication succeeded (password).
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: java.io.IOException: com.jcraft.jsch.JSchException: failed to send channel request
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: at ftp.SFtpConnection.(SFtpConnection.java:101)
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: at ftp.ConnectionManager.getConnection(ConnectionManager.java:328)
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: at ftp.FtpVFS.getConnection(FtpVFS.java:458)
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: at ftp.FtpVFS._canonPath(FtpVFS.java:195)
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: at org.gjt.sp.jedit.browser.BrowserIORequest.listDirectory(BrowserIORequest.java:158)
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: at org.gjt.sp.jedit.browser.BrowserIORequest.run(BrowserIORequest.java:90)
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: at org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:213)
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: at org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:180)
13:23:16 [jEdit I/O #4] [error] BrowserIORequest: at org.gjt.sp.util.WorkThread.run(WorkThread.java:154)


I also tried this with older versions of JEdit an the ftp plugin, e.g. with JEdit 4.2final and ftp 0.7.3. It doesn't work either, though throwing a different error. I even downloaded the latest version of JSch and replaced the version in the jar directory of JEdit, resulting in the same error message. I don't know what's going wrong, maybe somebody out there has any ideas? Please help cause I'm out of options...

Thanks in advance,
sven
OS X Leopard open file with Jedit
Submitted by Jaap on Friday, 18 September, 2009 - 11:52
In Leopard I want to open files (txt, css, html, etc) with Jedit. Jedit opens but with empty screen, file did not open. I have to open file manually.
How to tell Jedit I want the file to open when I click on file? Leopard knows I want to open some files with Jedit (told Leopard with file info)
New Java profiler to improve jEdit
Submitted by SoftwarePearls on Friday, 18 September, 2009 - 15:32
As a 'thank you' to the jEdit team, we're giving away free (full) licenses to our new CollectionSpy profiler to all serious jEdit contributors. CollectionSpy is the only Java profiler to focus exclusively on Collections Framework usage issues.

See http://www.collectionspy.com for tool features, contact details (please use the Support page), etc
Autohide docked views and better "intellisense"
Submitted by DaveF on Monday, 21 September, 2009 - 21:24
Hello,

I was wondering if it would be possible to automatically hide docked views when they no longer have focus. I remember there used to be a plugin for that functionality quite a while ago, but it's no longer compatible with the latest version of jEdit. I also think better "intellisense" and code completion would be a major plus. A lot of times I have to keep switching between jEdit and the Java API docs because I can't remember exactly how a certain method is spelled. It would be much easier if I could see a list of methods pop up as soon as I type '.'

Dave
Need Help
Submitted by Nirvana_One on Tuesday, 22 September, 2009 - 08:31
Hello,
I found it fast while jedit openning a txt file and displaying it even the file is large, why?
I use text to append the StringBuffer, also use MappedByteBuffer, but it's not as fast as jedit.
Would someone tell me some...?
Also My email: ts.nirvana@gmail.com
Thanks very much.
Powershell edit mode (powershell.xml v1.0 by James Hamilton)
Submitted by hmhoek on Tuesday, 22 September, 2009 - 19:25
Loosely based on jEdit's perl mode. This highlights just about all regular syntax, although I have not added support for calling generics yet. Ctrl-i indentation also works. Static methods don't get highlighted because when I wrote this lookbehinds weren't supported in mode definitions.
external editor parameters of code composer
Submitted by bseiz on Wednesday, 23 September, 2009 - 07:19
Hello,

i want to use jEdit as an external editor of Code Composer 3.1. I have tried a lot of things but nothing works. Especially i want to set up a line parameter which tells jEdit to go to a specific line.

Here you will find a screenshot of the configuration dialog of Code Composer for external editors:
http://www.bilder-space.de/show.php?file=23.09VZn2eHSmjrKEQIU.JPG

Can anybody help please?
Create new file from template
Submitted by rafael.felix on Wednesday, 23 September, 2009 - 22:27
First of all, i'd like to thank the jedit team for letting us use this fantastic editor. It is by far the best programming editor i've ever worked with.

But now here is the question: is there any way to create a file from a template? (Like those in Microsoft Word?)

I work with multiple php frameworks and it really sucks to have to create new controllers, models and views from scratch everytime.

thanks!
cannot download jEdit
Submitted by Pollyanna on Thursday, 24 September, 2009 - 15:32
When I try to download jEdit, I always get a message saying, "The "jedit-devel/4.3pre17/Packages.bz2" file could not be found or is not available. Please select another file."

I get this message regardless of what I try to download.

What am I doing wrong?
Cucumber syntax highlighting for jEdit (cucumber.xml v0.1 by Gabriel Medina)
Submitted by rha7dotcom on Thursday, 24 September, 2009 - 22:50
Cucumber syntax highlighting for jEdit

Allows you to highlight .feature (cucumber : http://cuckes.info/) files in jEdit.

Full instructions at:

red[:shades] - Cucumber syntax highlighting for jEdit


Suggested catalog mode line:

<MODE NAME="cucumber" FILE="cucumber.xml" FILE_NAME_GLOB="*.feature" />


corpus for computational linguisitcs
Submitted by hamyfox on Sunday, 27 September, 2009 - 20:49
Hi,

I recently discovered Jedit and started working with Jedit macros.
This site resources have been very helpful in assisting me with writing
a search and replace macro for HTML documents for corpus purposes.
I would like to clean HTML files and save them into txt files.
I am familiar with classes and methods from C++ but not quite
with Beanshell coding. Are there any references for Beanshell codes and methods ?
I would appreciate any help, in form of macro code for the following:
1- macro to delete first x lines of a document
2- macro for keeping only contents of title, paragraph or body of an HTML document

Any help in this matter through code or references would be greatly appreciated. Thanks.
newbie, BeanShell error, emacs emulation, WinXP
Submitted by gap on Monday, 28 September, 2009 - 22:49
I'm trying out jEdit as a possible 21st Century replacement for XEmacs to write python code. By now my fingers are hard-wired with Emacs keybindings, so I installed Brian's Emacs Emulation Package on two different WinXP machines. On one it works just fine. On the other I get a BeanShell error when jEdit starts (text below). I've reinstalled jEdit and the Emacs Package, updated java, and rebooted, but I still get this error. I'm utterly java illiterate, but it does look like it's failing on the very first line of emacs_bindings.bsh, so I suspect some installation problem. My java is:
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)

Please help ?!
-gap

------------------------------------------------------------
Sourced file: C:\Documents and Settings\Gary\.jedit\startup\emacs_bindings.bsh : Class: bsh.ClassIdentifier not found in namespace : at Line: 26 : in file: print : bsh .ClassIdentifier

Called from method: print : at Line: 8 : in file: C:\Documents and Settings\Gary\.jedit\startup\emacs_bindings.bsh : print ( "in emacs_bindings.bsh" )
at org.gjt.sp.jedit.bsh.BSHAmbiguousName.toClass(BSHAmbiguousName.java:74)
at org.gjt.sp.jedit.bsh.BSHType.getType(BSHType.java:154)
at org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:63)
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.BSHUnaryExpression.eval(BSHUnaryExpression.java:58)
at org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:123)
at org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:52)
at org.gjt.sp.jedit.bsh.BSHIfStatement.evaluateCondition(BSHIfStatement.java:63)
at org.gjt.sp.jedit.bsh.BSHIfStatement.eval(BSHIfStatement.java:46)
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.bsh.Name.invokeLocalMethod(Name.java:955)
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:801)
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.Interpreter.eval(Interpreter.java:644)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:331)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:279)
at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:205)
at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1030)
at org.gjt.sp.jedit.jEdit.runStartupScripts(jEdit.java:3704)
at org.gjt.sp.jedit.jEdit.main(jEdit.java:511)
Options Not Visible
Submitted by ptoole on Wednesday, 30 September, 2009 - 20:59
I am unable to see the "Example" option show up under the Plugin Options. Has anyone seen this behavior before?

Running jedit in debug mode returns NO errors, I get no messages back. I've tried all permutations including options-group in my properties file. Other plugins appear to be working fine.


Here's my proprty file:


# Properties file for example plugin

# application activator (4.2)
plugin.examplePlugin.activate=defer

# general plugin information
plugin.com.example.fe.jedit.ExamplePlugin.name=example
plugin.com.example.fe.jedit.ExamplePlugin.description=Tools used for example Development
plugin.com.example.fe.jedit.ExamplePlugin.longdescription=description.html
plugin.com.example.fe.jedit.ExamplePlugin.author=Patrick Toole
plugin.com.example.fe.jedit.ExamplePlugin.version=0.2
plugin.com.example.fe.jedit.ExamplePlugin.docs=index.html
plugin.com.example.fe.jedit.ExamplePlugin.depend.0=jedit 04.02.09.00
plugin.com.example.fe.jedit.ExamplePlugin.depend.1=jdk 1.3

# window title
example.title=Explain Plan


# labels for dockables.xml
ExplainPlanImage.title=Explain Image
ExplainPlanImage.label=Explain Image Window
ExplainPlanText.title=Explain Text
ExplainPlanText.label=Explain Text Window
QueryTableMetrics.title=Table Metrics
QueryTableMetrics.label=Table Metrics Window
QueryTableColumns.title=Table Columns
QueryTableColumns.label=Table Columns Window
QueryProjections.title=Projection Definitions
QueryProjections.label=Projection Definitions Window



# application menu items (4.2)
plugin.com.example.fe.jedit.examplePlugin.menu=example.explain-selection
# labels for actions
example.explain-selection.label=Explain Selection

# option pane
plugin.com.example.fe.jedit.ExamplePlugin.option-pane=example-sql
options.example-sql.label=Example
options.example-sql.code=new com.example.fe.jedit.ExampleOptionPane();
Custom File Extensions: Enabling syntax highlighting and abbreviations for
Submitted by navin on Sunday, 4 October, 2009 - 18:34
Hello all,
Please forgive me for this newbie question. I have been using jEdit successfully for a while now to create PHP scripts. I have recently started using the CakePHP framework and intend to keep using jEdit as my primary editor. However, CakePHP requires PHP/HTML code in certain files that don't have names that end in the familiar .php extension. I'd like to enable PHP syntax highlighting and abbreviation support for such files. My question is: How do I get jEdit to use PHP mode for files that don't have names that end with the .php extension?

Thanks,
Navin
Documentation for syntax highlighting
Submitted by robw on Friday, 9 October, 2009 - 23:03
Newbie here!

I've looked in all the docs can find but can't find anything about how to create a syntaxt highlighting file. Anyone knkw where I can get instructions?

Thanks.

Rob Wheeler (UK)
User login
Browse archives
« September 2009 »
MoTuWeThFrSaSu
 
1
2
3
4
6
7
8
9
12
13
15
16
17
19
20
25
26
29
 
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   97301
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299