jEdit Community - Resources for users of the jEdit Text Editor
Archives
Recent Files (Recent_Files.bsh v1.0 by Jeroen Budts (TeRanEX))
Submitted by TeRanEX on Saturday, 20 August, 2005 - 18:47
A macro to easily re-open a recent file. This is a modified version of Buffer_Switcher.bsh (written by Ollie Rutherfurd), to show recent files instead of open buffers.
Perl folding in jEdit 4.2
Submitted by Phrawm48 on Sunday, 21 August, 2005 - 00:07
Running jEdit 4.2 I get folding for C++ and HTML but not for Perl blocks.

jEdit seems to recognize that I'm editng a Perl file and I've tried experimenting with various fold settings, etc., without success.

Is anyone else using jEdit to write Perl scripts and if so does folding work?
Gruntspud 0.4.6-Beta - cannot connect to local repository in jEdit 4.2 on Mac OSX 10.4
Submitted by John Jameson on Sunday, 21 August, 2005 - 09:57
CVS works OK from cmd line terminal.
Gruntspud can see status of local checked-out files.
I have set up a local connection profile to the same path as CVSROOT.
I can checkout a module, but I cannot commit any changed files.
The commit btn greys out whenever I choose a file.
The Update btn is also greyed out.

Can anyone give me any pointers/help with this?
Euphoria Edit Mode (euphoria.xml v1.0 by Matija Kejzar)
Submitted by mkejzar on Monday, 22 August, 2005 - 13:58
Edit Mode for the Euphoria Programming Language.

To install it, add <MODE FILE="euphoria.xml" NAME="euphoria" FILE_NAME_GLOB="*.{e,ex}" FIRST_LINE_GLOB="#!/*ex*"/> to your catalog xml file.
German Language Update...
Submitted by benders on Tuesday, 23 August, 2005 - 13:05
Hi,

i use jEdit now since any weeks and i´m happy to found this program. give it a chance for a standard german interface plugin, that we can change the language? i think that i not only one, they want this.

thanks
Benders
runCommanToBuffer in BeanShell doesn't work
Submitted by Ted42 on Tuesday, 23 August, 2005 - 17:05
Hi

I want to write a simple Macro wich displays a shellscript output in a buffer. For that I use runCommandToBuffer( view, "System", "myscript" )

But instead of showing the output in a new Buffer, the Consolewindow gets opend and the result is displayed as if I have typed the command directly
in the shell...

I've tried this with version 4.2 and 4.3, both on WindowsXP and Mac OS X. No success..

Anyone knows waht I'm doing wrong?

Thanks
Tobi
Using XML catalog does not work
Submitted by olmedilla on Thursday, 25 August, 2005 - 20:49
Hi, I am opening a xml file starting with <?xml version="1.0" encoding="UTF-8"?> <Policy xmlns="urn:oasis:names:tc:xacml:1.0:policy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ctx="urn:oasis:names:tc:xacml:1.0:context" xmlns:md="http:www.medico.com/schemas/record.xsd" PolicyId="urn:oasis:names:tc:xacml:examples:policyid:3" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:deny-overrides"> ... in jedit and i get the following error in the console window 5:cvc-elt.1: Cannot find the declaration of element 'Policy'. However, I have a catalog added in the xml plug-in options with the schema in which Policy is defined. The catalog is as follows: <?xml version="1.0"?> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <rewriteSystem systemIdStartString="urn:oasis:names:tc:xacml:1.0:policy" rewritePrefix="file://...fullpath.../xacml/examples/cs-xacml-schema-policy-01.xsd"/> </catalog> The xmlcatalog tool from libxml works perfectly when I require the "urn:oasis:names:tc:entity:xmlns:xml:catalog" and returns the rewritten one. However, with jedit, I still get the same error and I have no idea of whether I am doing anything wrong or whether it is a bug. BTW, jedit outputs errors [error] SideKick #1: Cannot find CatalogManager.properties and when I finish I get [error] SideKick: Null editPane! I am using java 1.5, jedit 4.2 and xml plugin 0.13 in a gentoo distribution. Thanks in advance,
Updating User Information
Submitted by naugiedoggie on Friday, 26 August, 2005 - 02:46
Well, this qualifies as a site design bug, but anyway ... when I go in and change some information on my account and submit it, if one piece of the information doesn't pass the validator, it wipes out all the other changes! That's fairly annoying! If I make a mistake in the submittal, all the data should be preserved except the bad piece.

Thanks.

mp
Infoviewer Help Macro for PHP, XSLT, HTML, CSS (infoviewer_help.bsh v1.0 by Piero Orsoni)
Submitted by pallas on Friday, 26 August, 2005 - 11:38
This simple macro shows contextual help for a keyword by loading an online web page into the infoviewer plugin (which is required). It currently supports 4 edit modes: PHP, XSLT, HTML, CSS. Each mode is associated to a web site offering documentation about that language. By assigning a shortcut to it (like ctrl-F1) you can reproduce the behaviour of many other editors.
Failure to install jEdit in my mobilephone...
Submitted by seekXL on Saturday, 27 August, 2005 - 01:09
Hello,

give it a mobile solution of jEdit for mobile phones? my problem is, that is use a handy nokia9500 communicator with Symbian OS 7.0 Operation System; HTML 4.01-/XHTML-Browser and Java (MIDP 2.0). i download the "jedit42install.jar" file from ...optusnet/sourcsforge... and want to be install, but the handy says NO ?!

where is the misstake? have my phone a incompatible Java Version?

thanks for the help

seekXL
Install from source
Submitted by tkuneck on Saturday, 27 August, 2005 - 03:31
The source package compiles quite nicely with a copy of apache ant and sun jdk 1.5 that I compiled myself. The documents also compile fine.

I'm running a linux system (LFS if your curious).
When I try to run jedit as the user that I used to compile the sources, jedit runs without errors. However, I get a bunch of permission errors when I run as another user as a result of attempting to read the document files, and then jedit comes up without a tip of the day, all the documentation does not work, general chaos ensues.

SO... can I build the installer so that I can install the minimal files elsewhere?!? What files are required at a minimum for installation?


----
this is the output as a different user.
java -jar /usr/src/jedit/jEdit/jedit.jar

[error] jEdit: java.io.FileNotFoundException: /usr/src/jedit/jEdit/modes/catalog (Permission denied)
[error] jEdit: at java.io.FileInputStream.open(Native Method)
[error] jEdit: at java.io.FileInputStream.(FileInputStream.java:106)
[error] jEdit: at java.io.FileInputStream.(FileInputStream.java:66)
[error] jEdit: at org.gjt.sp.jedit.jEdit.loadModeCatalog(jEdit.java:3823)
[error] jEdit: at org.gjt.sp.jedit.jEdit.reloadModes(jEdit.java:1246)
[error] jEdit: at org.gjt.sp.jedit.jEdit.main(jEdit.java:409)
[error] BeanShell: java.io.FileNotFoundException: /usr/src/jedit/jEdit/startup/startup.bsh (Permission denied)
[error] BeanShell: at java.io.FileInputStream.open(Native Method)
[error] BeanShell: at java.io.FileInputStream.(FileInputStream.java:106)
[error] BeanShell: at java.io.FileInputStream.(FileInputStream.java:66)
[error] BeanShell: at org.gjt.sp.jedit.io.FileVFS._createInputStream(FileVFS.java:372)
[error] BeanShell: at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:344)
[error] BeanShell: at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:284)
[error] BeanShell: at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:210)
[error] BeanShell: at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:996)
[error] BeanShell: at org.gjt.sp.jedit.jEdit.runStartupScripts(jEdit.java:3323)
[error] BeanShell: at org.gjt.sp.jedit.jEdit.main(jEdit.java:451)
[error] ErrorListDialog$ErrorEntry: /usr/src/jedit/jEdit/startup/startup.bsh:
[error] ErrorListDialog$ErrorEntry: Cannot load: java.io.FileNotFoundException: /usr/src/jedit/jEdit/startup/startup.bsh (Permission denied)
[error] TipOfTheDay: java.io.FileNotFoundException: /usr/src/jedit/jEdit/doc/tips/tip44.html (Permission denied)
[error] TipOfTheDay: at java.io.FileInputStream.open(Native Method)
[error] TipOfTheDay: at java.io.FileInputStream.(FileInputStream.java:106)
[error] TipOfTheDay: at java.io.FileInputStream.(FileInputStream.java:66)
[error] TipOfTheDay: at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
[error] TipOfTheDay: at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
[error] TipOfTheDay: at javax.swing.JEditorPane.getStream(JEditorPane.java:719)
[error] TipOfTheDay: at javax.swing.JEditorPane.setPage(JEditorPane.java:406)
[error] TipOfTheDay: at org.gjt.sp.jedit.gui.TipOfTheDay.nextTip(TipOfTheDay.java:139)
[error] TipOfTheDay: at org.gjt.sp.jedit.gui.TipOfTheDay.(TipOfTheDay.java:56)
[error] TipOfTheDay: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2200)
[error] TipOfTheDay: at org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.endElement(PerspectiveManager.java:344)
[error] TipOfTheDay: at com.microstar.xml.XmlParser.parseETag(XmlParser.java:1041)
[error] TipOfTheDay: at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1112)
[error] TipOfTheDay: at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
[error] TipOfTheDay: at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
[error] TipOfTheDay: at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
[error] TipOfTheDay: at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:496)
[error] TipOfTheDay: at com.microstar.xml.XmlParser.doParse(XmlParser.java:176)
[error] TipOfTheDay: at com.microstar.xml.XmlParser.parse(XmlParser.java:146)
[error] TipOfTheDay: at org.gjt.sp.jedit.PerspectiveManager.loadPerspective(PerspectiveManager.java:81)
[error] TipOfTheDay: at org.gjt.sp.jedit.jEdit$5.run(jEdit.java:3450)
[error] TipOfTheDay: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[error] TipOfTheDay: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[error] TipOfTheDay: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
[error] TipOfTheDay: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
[error] TipOfTheDay: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
[error] TipOfTheDay: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[error] TipOfTheDay: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
[error] WorkThread: Exception in AWT thread:
[error] WorkThread: java.lang.NullPointerException: Mode must be non-null
[error] WorkThread: at org.gjt.sp.jedit.Buffer.setMode(Buffer.java:2016)
[error] WorkThread: at org.gjt.sp.jedit.Buffer.setMode(Buffer.java:2066)
[error] WorkThread: at org.gjt.sp.jedit.Buffer.finishLoading(Buffer.java:3920)
[error] WorkThread: at org.gjt.sp.jedit.Buffer.access$800(Buffer.java:71)
[error] WorkThread: at org.gjt.sp.jedit.Buffer$1.run(Buffer.java:280)
[error] WorkThread: at org.gjt.sp.util.WorkThreadPool.doAWTRequest(WorkThreadPool.java:392)
[error] WorkThread: at org.gjt.sp.util.WorkThreadPool.doAWTRequests(WorkThreadPool.java:380)
[error] WorkThread: at org.gjt.sp.util.WorkThreadPool.access$200(WorkThreadPool.java:37)
[error] WorkThread: at org.gjt.sp.util.WorkThreadPool$RunRequestsInAWTThread.run(WorkThreadPool.java:477)
[error] WorkThread: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[error] WorkThread: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[error] WorkThread: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
[error] WorkThread: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
[error] WorkThread: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
[error] WorkThread: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[error] WorkThread: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Sometimes files opened on Windows via the Explorer context menu open in a separate JEdit
Submitted by tbee on Wednesday, 31 August, 2005 - 09:43
That's all there is to it, and sometimes they don't. Can't find a behaviour that triggers it. Once JEdit is in the "separate" mode, all files are opened in a separate JEdit.
Old Backup of Wiki-content
Submitted by Vampire on Thursday, 1 September, 2005 - 05:04
Unfortunately I had to roll-back a backup of the wiki-content from 26. July 2005, because of a loss of data.
For the future there is a daily backup made automatically.
Please redo any changes that you did since the Backup.
Terminating a rule set at a newline
Submitted by silverquick on Monday, 5 September, 2005 - 05:59

After using (and loving) jEdit for a little while, I realised that, in PHP mode, code like the following is highlighted incorrectly:

...
// this is a comment ?>

The problem is that PHP always ends parsing at the closing tag ('?>'), even if the line it's on is commented with // or #. However jEdit's highlighting does not reflect this. This issue is covered in a bug report at:

http://sourceforge.net/tracker/?group_id=588&atid=100588&func=detail&aid=958013

However, I thought I'd bring the discussion here, too. I tried putting the following in the php.xml file:

<SEQ DELEGATE="PHP_LINECOMMENT">//</SEQ>
<SEQ DELEGATE="PHP_LINECOMMENT">#</SEQ>

<RULES SET="PHP_LINECOMMENT" DEFAULT="COMMENT1">
	<SEQ TYPE="NULL" DELEGATE="MAIN">?></SEQ>
	<SEQ TYPE="NULL" DELEGATE="PHP">&#xA;</SEQ>
</RULES>

What this does is delegate any code following // or # to my special PHP_LINECOMMENT rule set. This rule set should then end at either a PHP closing tag, going back to HTML mode; or at an end-of-line, going back to normal PHP mode. The former works and the latter doesn't.

This is the main point I wanted to raise for discussion. Why doesn't the newline character (&#xA or &#10) work, and is there a possible workaround? Using the newline character is also applicable to other highlighting issues, including (X/HT)ML attributes, because they can be spread over multiple lines.

Replace HTML/XML tags (Replace_Tags.bsh v1.0 by De Franciscis Dimitri megadix@gmail.com)
Submitted by megadix on Wednesday, 7 September, 2005 - 13:59
Replace an HTML/XML tag with another, preserving all the rest: - attributes (even with incorrect syntax) - whitespace - character data
Screenshot.bsh v1.0 by Delvin Johnson
Submitted by delvinj on Thursday, 8 September, 2005 - 18:15
Take a screenshot of your desktop and save it as a PNG file.
Get_Screen_Color.bsh v1.0 by Delvin Johnson
Submitted by delvinj on Thursday, 8 September, 2005 - 18:20
Get_Screen_Color.bsh: A small text field that shows RGB or Hexadecimal color value for the current mouse coordinate. Usage:
  1. Press UP or DOWN to toggle RGB/Hexadecimal values
  2. Press ENTER to copy the current value to the clipboard and stop.
  3. Press ESCAPE to stop without copying.
Requires JRE 1.5 or later
jEdit and Mac OS X integration
Submitted by Derentis on Friday, 9 September, 2005 - 19:40
A really nice feature for jEdit would be to have the menu at the same place where other apps do have their menu in OS X : in the Finder bar !

I notice that jEdit 4.1 did function like this but not jEdit 4.2 ... Why ? this feature is almost essential for us, Mac users ! Even NeoOffice/J has its menu in the Finder bar, like every other app !

Or have I missed sommething ?
XML plugin support for Zope Page Templates
Submitted by robbo on Friday, 9 September, 2005 - 20:52
Since jEdit comes with an edit mode for Zope Page Templates (zpt), I think it would be natural for the XML plugin to support such files - such as automatic closing tags, block level outline, etc. I've done this by extracting XML.props from the plugin, adding the line mode.zpt.sidekick.parser=html, then updating the jar file. This doesn't do validation, but treats the zpt file like an html one, without having to change my edit mode to html. Could this line be included in future versions of the plugin?
jEdit Mel Sender v0.1 (jEditMelSender_v0.1.rar v Macros to by nazz78)
Submitted by nazz78 on Friday, 9 September, 2005 - 23:15
A set of macros which send current buffer (file that is beeing worked on) in Maya where it is evaluated. Now you do not have to copy/paste text to script editor anymore since macros are taking care of it. You have three options: Send to Maya - sends whole buffer to Maya and evaluates it Send Selected to Maya - sends only selected text to Maya and evaluates it Source in Maya - sources current buffer in Maya (for large scripts) Macros were created on Windows XP (jEdit 4.3 pre 1 and Maya 7.0), but I think they sould work on Linux and Mac also. Please see included instructions on how to set everything up.
User login
Browse archives
« August 2005 »
MoTuWeThFrSaSu
3
7
13
14
24
28
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