Saving file changes permissions
Submitted by
jrsupplee on
Tuesday, 24 August, 2004 - 10:07
I am using Jedit 4.1Final on windows and whenever I save a file that is located on a Linux box it removes executable permissions from the file. So if my file is a script and had permissions 755, after I save it, it will have 644. Is there a fix for this behavior?
Drag and drop to open
Submitted by Anonymous on Monday, 23 August, 2004 - 18:52
I'm using jEdit v4.1 final on Windows XP.
Is it possible to open files by dragging them into the application window? I get the "not allowed" curser when I try to do this. Thanks.
-Adam
Adding new dtd or xsd for autocompletion
Submitted by
dverdin on
Friday, 20 August, 2004 - 10:01
Hi,
I want to use autocompletion in Jedit for XML documents.
These documents are used in cocoon to create forms. They have their own namespaces and dtd or xsd.
I would like to use the autocompletion fonction, but I don't know how to tell this to jedit. I guess I need to have local copies of the dtds somewhere on my system, and declare it to Jedit. How can I do it ?
Another question, probably related : I don't understand what are the catalogs in the XML plugin, what is their usage, and what kind of file they are supposed to be.
Well, it's probably dumb questions, but I'm quite new to Jedit, and I need to learn...
Folding/Unfolding Element Nodes in XML-Document
Submitted by
Michael36 on
Friday, 20 August, 2004 - 07:48
Hello,
folding/unfolding for element nodes does not work in my XML-Document although there is one menu item ('Folding|Collapse/Expand Fold') provided for this purpose. How can I configure jEdit to do this job?
Any help wellcome,
Greetings
Michael
Viewing XML Document As Tree
Submitted by
Michael36 on
Friday, 20 August, 2004 - 07:28
Hello,
I'm editing an XML Document with jEdit. How can I display the document in a tree?
There seems to be no menu item for this purpose. I've already installed various XML-libraries ('XML','XML-Indenter','xml-commons-resolver.jar').
Help would be great.
Greetings
Michael
better c syntax highlighting?
Submitted by
kimjim on
Wednesday, 18 August, 2004 - 22:12
Hello,
I just started to learn a bit C. Is there a mode file, plugin or something that would give me better C syntax highlighting in jEdit? I use jEdit everyday, mostly for html stuff, and I would like to use it for my C lessons too, but I find the default C highlighting a bit disapointing. For example, function names are not highlighted at all, although there is a setting for functions in the syntax highlighting options. I would love to have different syntax highlighting for function names and variable names, like in SubEthaEdit, if anybody knows this editor.
Sorry if this is a FAQ. I tried to use the search form to find an answer, but it doesn't use search strings shorter than 2 chars, so I can't search for something like "c mode".
Thanks, kimjim
Problem trying to Exit JEdit
Submitted by
yogesh_4u on
Tuesday, 17 August, 2004 - 14:04
I have getting an un expected error trying to exit jedit.
Below is the Stack Trace for the error.
java.lang.NegativeArraySizeException
at org.gjt.sp.jedit.jEdit.getBuffers(jEdit.java:1947)
at org.gjt.sp.jedit.PerspectiveManager.savePerspective(PerspectiveManager.java:147)
at org.gjt.sp.jedit.jEdit.exit(jEdit.java:2470)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at bsh.Reflect.invokeOnMethod(Reflect.java:149)
at bsh.Reflect.invokeStaticMethod(Reflect.java:100)
at bsh.Name.invokeMethod(Name.java:872)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:349)
at bsh.BshMethod.invoke(BshMethod.java:246)
at bsh.BshMethod.invoke(BshMethod.java:171)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2907)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Problem trying to Exit JEdit
Submitted by
yogesh_4u on
Tuesday, 17 August, 2004 - 14:01
I have getting an un expected error trying to exit jedit.
Below is the Stack Trace for the error.
java.lang.NegativeArraySizeException
at org.gjt.sp.jedit.jEdit.getBuffers(jEdit.java:1947)
at org.gjt.sp.jedit.PerspectiveManager.savePerspective(PerspectiveManager.java:147)
at org.gjt.sp.jedit.jEdit.exit(jEdit.java:2470)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at bsh.Reflect.invokeOnMethod(Reflect.java:149)
at bsh.Reflect.invokeStaticMethod(Reflect.java:100)
at bsh.Name.invokeMethod(Name.java:872)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:349)
at bsh.BshMethod.invoke(BshMethod.java:246)
at bsh.BshMethod.invoke(BshMethod.java:171)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2907)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Project Viewer problems on 4.2pre15
Submitted by Anonymous on Friday, 13 August, 2004 - 21:42
Hi, I'm new to jedit, but thanks to the abundant documentation have successfully installed many plugins. However, "Project Viewer 2.0.4" does not seem to work for me on jedit 4.2pre15 and Redhat 9.0. The symptoms are that I can create projects (files are created in ~/.jedit/projectviewer), but don't seem to able to do anything with the projects. I don't see the Add/Edit icon on the toolbar that the documentation describes, nor do I see any method to load files into projects from jedit, nor is there a window showing the project structure. Has anyone gotten PV to work on the following system?
Here is the relevant activity log info:
[message] Log: java.version=1.4.2_03
[message] Log: java.vm.version=1.4.2_03-b02
[message] Log: java.runtime.version=1.4.2_03-b02
[message] Log: java.vendor=Sun Microsystems Inc.
[message] Log: java.compiler=null
[message] Log: os.name=Linux
[message] Log: os.version=2.4.20-8
[message] Log: os.arch=i386
[message] Log: user.home=/home/jhaefner
[message] Log: java.home=/usr/java/j2re1.4.2_03
[message] Log: java.class.path=/usr/local/share/jedit/4.2pre15/jedit.jar
[notice] jEdit: jEdit version 4.2pre15
[message] jEdit: Settings directory is /home/jhaefner/.jedit
[message] jEdit: jEdit home directory is /usr/local/share/jedit/4.2pre15
If you have gotten this work, can you describe what you did/do to make PV work after it is loaded? Thanks in advance
Jim
Converting Smart Quotes from Word HTML to HTML entities in macros
Submitted by Anonymous on Friday, 13 August, 2004 - 19:02
I'm very pleased with jEdit (4.1)... I've been using macros to clean up the "filtered" html that MSWord 2003 generates for a project I'm working on. One problem that I noticed, I can search and replace the weird "smart quotes" and elipses (sp?) that Word uses with HTML entities using the Search and replace dialogue box, but whenever I try to record it as a macro, it stops working. A typical macro, once recorded, looks like this:
SearchAndReplace.setSearchString("“");
SearchAndReplace.setReplaceString("“");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.replaceAll(view);
Any ideas as to what I can do to get it to work as a macro?
Tag completion
Submitted by
jnix on
Friday, 13 August, 2004 - 18:24
Specifically, I'm looking to get jedit to behave like ColdFusion Studio, but I think the general theory applies to anything. How do I enhance the list of tags that pops up when I start typing "<"? currently I just get html tags, but I want the CFML tags to appear as well.
Thanks.
PHP and heredoc
Submitted by
mxc on
Thursday, 12 August, 2004 - 20:47
Is there a way to get jEdit to syntax highlight a heredoc string based on the delimiter?
For example, if I have a heredoc comment such as this
$table = <<<HTML
<table>
....
</table>
HTML;
can I get jEdit to see the HTML delimiters and then treat the content in between as HTML and perform syntax highlighting accordingly?
cursor beyond EOL
Submitted by Anonymous on Thursday, 12 August, 2004 - 16:56
Is it posible to let the cursor go beyond EOL just by pressing the arrows?
Launching Jedit from JDistro
Submitted by
turiot on
Thursday, 12 August, 2004 - 08:55
What it the procedure to launch Jedit within JDistro.
I intent using JDistro in order to save memory.
Indenting comment lines in Perl
Submitted by
Peacock on
Thursday, 12 August, 2004 - 07:59
When using =pod ... =cut to comment out Perl code, and subsequently using Ctrl-I to automatically indent the Perl code, the =pod and =cut tags are placed in the same column as the start column of the next line of code. They should be placed at the first column of the line though to be interpreted correctly by the Perl interpreter.
How to change file properties?
Submitted by
ccapeng on
Wednesday, 11 August, 2004 - 21:28
I used to have ultraedit. To edit a read only file, I just open file browser (window file dialog box) and change file properties.
Any simliar feature in jEdit?
Console Plugin: Getting Commando files to save variables from last use
Submitted by
JuliusB on
Wednesday, 11 August, 2004 - 15:16
I'm tring to make a commando file for compiling individual C/C++ files.
It should take in as arguments: which compiler to use, Include switches, Lib switches and other compiler switches.
Is it somehow possible to save these variables so that you don't need to write them every time?
On a side note: Is it possible to make the Eval attribute excute an arbitrary beanshell script?
Thanks In Advance,
Julius
Btw, JEdit Rocks!!!!
Displaying tab and space characters
Submitted by Anonymous on Wednesday, 11 August, 2004 - 01:00
How do I do that in jEdit?
I miss that feature from EditPlus.
If it can be displayed, how can I change the symbol used for displaying these special characters? I don't like how the line-feed looks like a period.
How to copy hyersearch result?
Submitted by
ccapeng on
Tuesday, 10 August, 2004 - 16:31
The hypersearch result is in the tree list.
Is there a way I can copy to the whole content to clipboard?
JSwat plugin not visible
Submitted by
lauviss on
Tuesday, 10 August, 2004 - 12:02
I'm using jEdit 4.1 final on Windows XP Professional. I've installed the plugin JSwat 1.5.4 with jEdit. My Problem: After restart of jEdit I cannot find the plugin. Neither with the plugin manager nor with searching through the options. May you give me a hint, what's going wrong?
Thanks in advance,
lauviss
P.S.: I've searched the forum and couldn't find anything about such a problem. If this is the wrong forum, sorry.