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
...
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:
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">
</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 (
 or 
) 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:
- Press UP or DOWN to toggle RGB/Hexadecimal values
- Press ENTER to copy the current value to the clipboard and stop.
- 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.