jEdit Community - Resources for users of the jEdit Text Editor
Archives
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.
-reuseview should be default behavior
Submitted by kjkrum on Monday, 12 September, 2005 - 03:48
I think that -reuseview is probably the intended behavior almost all the time. If that's true, then it should be the default behavior. You shouldn't have to add it to all your shell aliases, application launchers, file associations, etc...
File listeners and jEdit
Submitted by rbublitz on Monday, 12 September, 2005 - 16:22
I am very new to java plugin writing. I would like to know what jEdit options there are for updating buffers when the file it is displaying is modified on disk. Are there jEdit class/methods or how do I incorporate the java File Listeners?

Thanks.
Console plugin - how to write to the shell
Submitted by rbublitz on Monday, 12 September, 2005 - 16:26
I'm interested in using the Console plugin to display information. I am not interested in displaying the results of an executed script. How can I specifically write to the console shell?

Thanks.
Heap size on MacOSX
Submitted by ggw10 on Tuesday, 13 September, 2005 - 11:26
I have a PhD student who is trying to use jEdit to edit large XML files under MacOSX: not
surprisingly, it fails with out of memory errors. So, how do I change the heap size
under MacOSX? There seems to be no documentation at all on this. I could, of course,
write a bash script to run jEdit, or something ugly like that, or I could teach my student
to use emacs (which has much less trouble editing large files). But is there a way of
doing this in jEdit?

Thanks
Graham White
Printed page shows spaces as little boxes
Submitted by RichC23 on Wednesday, 14 September, 2005 - 20:57
I just installed Jedit on my Window XP PC. Everything works fine through the UI, but when I print to my HP Laserjet, instead of spaces between words it prints little empty boxes (square frame). How do I get rid of the little boxes?

Thanks,
Rich
file system browser doesn't show directory contents
Submitted by nex on Wednesday, 14 September, 2005 - 21:05
when i installed the latest version of jEdit on my mac OS X system, everything worked as expected for several editing sessions, but today the file system browser stopped working, even though i hadn't changed anything that could conceivably affect jEdit. i can 'open' a directory by entering its path or selecting one of my favourites, and the directory entry itself and its parent directories are displayed as expected, but every directory i try appears empty; even if it contains a file that is currently open in the editor.

has anyone already had this problem, or an idea what it could be?
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