Select and iterate through string literals (selectStr.bsh v0.1 by Mehmet Soyturk "myavuzselim")
Submitted by
myavuzselim on
Friday, 14 April, 2006 - 08:04
- Calling this macro once selects text between the doublequotes around the caret, doublequotes exclusive.
- A second call selects also the doublequotes.
- By calling the macro multiple times, you iterate through the string literals in your file from left to right.
- It takes java/c++ escape sequences into consideration.
jEdit 'hangs' on startup
Submitted by
Atlantean on
Saturday, 15 April, 2006 - 17:25
Hi all,
Since installing jEdit recently I've been experiencing a problem when jEdit starts. The first time I launch jEdit after a reboot all seems well. However, often if I close jEdit and then reopen it later, it will hang for 30 seconds after the splash screen. During this period absolutely everything freezes - any music playing stops and my mouse cursor is immovable. When jEdit finally loads I'm left with a
totally unusable GUI. I'm relatively new to jEdit so I really have no idea how to figure out what is causing the problem.
Just in case it's relevant, here's some extra info:
I'm using Sun's 'jre1.6.0' and also tried 'jre1.5.0_06' - both yield the same results.
Any assistance would be greatly appreciated as I'm totally stumped. Thanks in advance,
Ant.
Macro Help
Submitted by
Caim on
Saturday, 15 April, 2006 - 20:01
I've spent about 2 days trying to install jEdit properly on my computer(windows XP). Today I finally got everything working. and I started playing around with all the things you can do with jEdit. I am just starting to learn how to program in Python. Everything works fine but I have a question about macros.
I know how to record macros. I know how they work and what they are, (Beanshell or Jython scripts) but I don't know how to assign keyboard shortcuts to my created macros. Is there a way to do this?
Thanks in advance.
Running on Multiple Macs
Submitted by
mdwgmalc on
Sunday, 16 April, 2006 - 05:18
Hello,
I want to be able to edit files on multiple Macs (running a mixture of OS 10.3 and 10.4), with the preferences kept consistent between the computers. What is the simplest way to do this? I couldn't find the file which stored my preferences, but if somebody could tell me where I can find it then I will keep it synchronised between the computers and that will be great.
Other than this minor issue jEdit has been great -- keep up the good work!
Background Plugin
Submitted by
ivy on
Tuesday, 18 April, 2006 - 13:39
Hi evyone,
i'd like to install and use the background visual plugin (link: http://plugins.jedit.org/plugins/?Background)
It's not working, i dont know why.
I installed it form the Plugin Manager inside jEdit (version 4.2 final).
Now I can find the background item in the Plugins Menu.
The item looks chacked, but if i click on it i get this error message:
-------------------------------------------------------------------
java.lang.NoSuchMethodError: org.gjt.sp.jedit.textarea.JEditTextArea.getFoldVisibilityManager()Lorg/gjt/sp/jedit/textarea/FoldVisibilityManager;
at background.BackgroundHighlight.updateTextArea(Unknown Source)
at background.BackgroundHighlight.toggleHighlightEnabledFor(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:2910)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
-------------------------------------------------------------------
What's the matter?
I dont know how to chose an image, or how to solve this problem...
Thanks everyone for help.
Bye,
Ivy
How to create this look...
Submitted by
ivy on
Tuesday, 18 April, 2006 - 13:48
Hi, i'd like to customize as much as i can jEdit (i am a newbie, so please forgive me if i poststupid questions

).
I like those colors, i know i can change those setting in the global option menu.
But, how can i "create" the effect used in the screenshot to collapse or expand some parts of code?
http://jedit.org/index.php?page=screenshot&image=21
Thanks everyone for help,
Bye,
Ivy
sftp plugin and defunct sftp-server processes
Submitted by
edoceo on
Tuesday, 18 April, 2006 - 23:38
I use and love the sftp plugin but I notice that on some of my servers (gentoo) I get many defunct sshd/sftp-server processes. Anyone else seeing this issue?
My SSH servers are:
# ssh -V
OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
In the sshd_config file I had these values:
# grep Client /etc/ssh/sshd_config
ClientAliveInterval 0
ClientAliveCountMax 3
Meaning no keep alive is sent on the SSH channel (different from TCP keep alive).
I'm tweaking/studying those affects as I type, any other hints?
MATLAB auto-indent broken - how to fix?
Submitted by
Reckase on
Wednesday, 19 April, 2006 - 02:22
I've just tried the MATLAB mode for jEdit, and I can't get the auto-indent to work properly. I think it's because some of the XML is out of date and no longer supported: I don't think 'indentPrevLine' is a valid property any longer. I think that the correct property to use would be 'indentNextLines' for MATLAB, since there are no curly braces around code blocks, only an if, while, else, etc, followed by an 'end'.
My question is: how do I decrease the indent when an 'end' statement is encountered?
Make Jedit run on JDK on removable USB drive without changing PATH (batch file, maybe?)
Submitted by
sidewalking on
Wednesday, 19 April, 2006 - 13:29
Hi all,
I searched a bit but couldn't find the answer, so here goes:
Here is my situation. I have an old JRE 1.3 on my work computer and one of our programs will not work with anything newer than this (don't ask). Needless to say, I am not allowed to install any Java JRE (and I presume JDK/SDK either).
However, I copied my install folders of the newest JDK and JRE for 1.5.0_6 to my USB drive (path is E:\Java\jdk1.5.0_06) and I can run Netbeans, BlueJ and jGRASP just fine because those prompt you to browse for a JDK to use.
This is the problem I run into: I want to use Jedit, not just as an editor but with the compiler functionality, and I wold prefer running it from my USB Java 1.5 JRE rather than the antiquated 1.3 on my desktop machine. Can I do this? I know how to set the path but I do not want to interfere with the functionality of that work program. Is there a batch file I can use to start it that will invoke it to start in the E:\Java\jdk1.5.0_06\bin or E:\Java\jre1.5.0_06\bin folders instead of the system path that directs to JRE 1.3?
Many thanks!
Scott
Importing shortcuts
Submitted by
dnagy on
Wednesday, 19 April, 2006 - 23:17
Is it possible to export keyboard shortcuts then import them? I have two Jedit installations that I would like to behave similarly.
Could only find a macro to export to a buffer - no import. Are the shortcuts stored in a file somewhere?
Darrin
Using Mode for Stata?
I'm a brand new user and quite ignorant. I've installed the mode for Stata, it appears in the list of modes and I even selected it as the default mode. Yet special formatting and highlighting of text doesn't seem to be turned on. I've looked at the help files but haven't made any progress resolving this. Any help would be much appreciated. Thanks.
PHP First Line GLOB in catalog
Submitted by
edoceo on
Friday, 21 April, 2006 - 00:37
It comes (4.3p3) like this:
but that misses php command line scripts that start with a #!/usr/bin/php or the like.
I would like to suggest/request the modification below:
Catches files with right suffix, starting with
Developing New Project Management Plug-in
Submitted by
philmaker on
Monday, 24 April, 2006 - 05:28
This week I am creating a plug-in which will be a fresh approach to managing a projects files. It will have some of the functionality of ProjectViewer but with a radically different GUI. Most of these new GUI elements I had created in a past personal project. I have used ProjectViewer for at least three years and I find it extremely useful but I am now finding its limits because I have so many small related projects. I will also integrate some aspects of AntFarm somehow but without making the new plug-in relevant for Java projects only. I hope to have something demoable by the end of this week. I'll be looking for developers to help me enhance and complete the plug-in and I'll likely need some testers as well. I'll have more details online once I post the demo and commit to CVS. Please contact me if you're interested in helping.
Thanks,
Philip Weaver
Problem with JCompiler
Submitted by
michelverp on
Monday, 24 April, 2006 - 11:49
Hello everybody
I know I'm not the first one who has this problem, but as I have not yet found the answer...
.
I'am working with slackware 10.2
I have downloaded JEdit from linuxpackages.net
Here is my problem !!
When I try to start JCompiler, I always have the following message (whatever I setup JCompiler)
java.lang.NoSuchMethodError: console.Console.setShell(Lconsole/Shell;)V
at jcompiler.JCompilerPlugin.executeCommand(JCompilerPlugin.java:106)
at jcompiler.JCompilerPlugin.compileFile(JCompilerPlugin.java:120)
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:585)
and so on....
Does somebody have an idea how to solve this problem ?
Thanks
michelverp
Editing and modifying the modes language files
Submitted by
Manil on
Monday, 24 April, 2006 - 17:32
Hi,
I am trying to add "--" as a single line command in modes/pascal.xml, actually it is supporting juste "//", i replaced the // by -- in the file, but it didn't work. I want to have in pascal highlights for my functions, i know that i can do it in C but not in Pascal, i tried to add this command like in C but it didn't work.
ss
(
Any help or commants will be very apreciated.
Thx a lot
Java version in Console PATH
Submitted by
mhkay on
Monday, 24 April, 2006 - 23:31
When I use the "java" command from the console, it brings up JDK 1.3. When I look at the PATH environment variable, my JDK 1.3 installation directory has been added at the start of the path. I want my default java to be JDK 1.5. Is there any way I can change this behaviour?
Michael Kay
Excel formula plugin?
Submitted by
stuckfly on
Tuesday, 25 April, 2006 - 14:46
I don't know about Excel 2007, but the current and previous versions do not have an efficient text editor for entering complex formulae into spreadsheet cells.
You can use alt-enter for line breaks and spaces to indent, and Excel color codes cell references and parentheses, but each line break and space counts against the maximum formula length limit of 1024 characters.
Entering nested conditional formulae quickly becomes confusing, and editing someone else's work can be very difficult. A code editor that recognizes Excel formula syntax, handles indenting of nested functions, color codes things better than Excel's formula bar, and allows comments would be very handy, especially to keep formulae concise. It should count characters (but not line breaks and indents) and enable single-click to copy all to Excel sans breaks and indents and comments. One could save the formula code with comments to a text file for later use.
I've heard Excel 2007 eliminates the formula length limit and nested function level limit. Unless Microsoft is already building a text editor into Excel for formula entry, a jEdit plugin for this will become a very popular tool I think.
jEdit cleanup
Submitted by
metric152 on
Thursday, 27 April, 2006 - 01:11
I've been using jEdit for the last two weeks and it's a great program.
It seems a little sloppy about cleaning up the temp files (*.ext~) when the program closes.
Is there any way to have the program delete those on exit, or do I have to remove them by hand?
How can I load a Buffer
Submitted by
zhang_tx on
Thursday, 27 April, 2006 - 13:40
I'm writing a plugin for jEdit. In the plugin, I need to get File content by path, My code like this:
Buffer _buffer = jEdit.getBuffer(path);
String content = _buffer.getText(0, _buffer.getLength());
but this code caught NullPointException.
Then I found that the _buffer is unload:
_buffer.isLoad() = false;
so my question is how can I get a Buffer by path and load it,
or how can I get File content with the file path.
I'm the beginner in JEdit plugin develop, I hope if some kind man can help me with this problem, SOS, whoever you are, thank you very much!
Highlights the current function in CodeBrowser
Submitted by
Manil on
Thursday, 27 April, 2006 - 19:28
Hi all,
I want to know, if we can have a highlight on a current function in CodeBrowser, it will be usefull to know where we are in the code when we are editing a function. I don't think it's a hard thing to implement juste locating the position of the pointer and comparing it to the position of the functions....So if anyone thought about it, can you let me know or may be i can try to implement it, but i'll need to be in the developpement team probably...
Thx for any answer
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