jEdit Community - Resources for users of the jEdit Text Editor
How to reduce a function body
Submitted by Anonymous on Sunday, 29 August, 2004 - 11:44
How to reduce the body of a function in the text area, in order to have something like that: "+ void my_function(void truc) {" <== all the body of the function is hidden here and when you click on the "+" the body expands. PS: excuse me for this horrible english, i'm french...
How to invoke GDB in an independent console window ?
Submitted by Anonymous on Saturday, 28 August, 2004 - 14:40
Is it possible to invoke GDB (or any other command line application)
in its own independent console window using the console plugin ?
If I invoke GDB directly in console it returns immediately...
Thanks.
build.xml: many errors
Submitted by backspaces on Saturday, 28 August, 2004 - 00:35
I'm sure I'm doing a dumb thing, but ... I've got the xml plugin which works great for xhtml editing. I've just loaded a downloaded ant build.xml file, however, and there are lots of errors noted.

The error list shows <project>, <target>, ... and the other ant xml keywords as being not recognized. But the xml insert side panel shows these as being just fine. I believe this means the ant dtd/catalog is known by the plugin.

Here's a picture: http://backspaces.net/files/jEdit001.jpg

So what dumb thing am I doing wrong?!

Thanks...

Owen

Auto-completion and ColdFusion
Submitted by Anonymous on Friday, 27 August, 2004 - 18:53
I've recently switched from HomeSite to jEdit and while I'm *really* happy with jEdit there's one thing that bugs me. For some reason the auto-completion for both HTML and ColdFusion doesn't work for me (jEdit 4.2pre14) if the file extension is cfm. If I save something as .html it works, but of course I would like having both tags and HTML expanded. One (stupid) question: are edit modes resposible for tag completion (because I know they govern syntax highlighting)? If yes, is the edit mode that shipped with 4.2pre14 broken? If anyone knows how to fix this, please let me know...
Folding & Python
Submitted by Anonymous on Friday, 27 August, 2004 - 04:10
I don't like how the only descent way I can fold with python is using the indent mode of folding. The problem with it is that it is greedy on ending whitespaces. Example:

def a():
____pass

print 'hi'

If I fold a, I get:

def a(): [2 lines]
print 'hi'

What I want to get is:

def a(): [1 line]

print 'hi

This becomes very annoying because if you use alot of folding it will look very busy, when I'd like to keep the extra newlines/whitespaces after each fold. Is there a way to configure jedit to leave these ending whitespaces?

If not, could anyone help me write a regex line for how to get the configurable folding plugin to work the way I want it? (its a bit tricky because of how python handles whitespaces)

Thank you!
Help me, Progress 4GL have embedded comments? Is it working in JEdit?
Submitted by Wladi on Wednesday, 25 August, 2004 - 20:43
Help me, Progress 4GL have embedded comments? Is it working in JEdit?
PS: sorry for my english
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("&ldquo;");
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.
User login
Browse archives
« May 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
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   83283
Context Free Art (*.cfdg)   0.31   46056
BBEdit scheme   1.0   18596
JBuilder scheme   .001   18496
ColdFusion scheme   1.0   18025
R Edit Mode - extensive version   0.1   17474
Advanced HTML edit mode   1.0   16207
Matlab Edit Mode   1.0   16069
jEdit XP icons   1.0   15230
XP icons for jEdit   1.1   14294