Sharing: Context sensitive help for PHP using Firefox
Submitted by
ezuk on
Monday, 19 April, 2010 - 05:20
Her's a macro I adapted for opening php.net's documentation in Firefox for the currently selected keyword:
// Context-sensitive help for PHP.
String editMode = buffer.getMode().toString();
ffpath = new StringBuffer();
ffpath.append("c:/Program Files (x86)/Mozilla Firefox 3.6 Beta 5/firefox.exe ");
keyword = textArea.getSelectedText();
if ((keyword == null) || (keyword.length() == 0)) {
textArea.selectWord();
keyword = textArea.getSelectedText();
}
if ((keyword != null) && (keyword.length() > 0)) {
if (editMode.equals("php")) {
keyword = keyword.replace('_', '-');
command = new StringBuffer();
command.append(ffpath);
command.append("http://php.net/manual/en/function.");
command.append(keyword);
command.append(".php");
Runtime.getRuntime().exec(command.toString());
}
}
Fix for edit modes regarding auto documentation tools (e.g. doxygen, phpdoc, javadoc etc).
Submitted by
xandrani on
Monday, 19 April, 2010 - 13:29
Hi,
I have noticed that there is a doxygen edit mode (doxygen is similar to javadoc or phpdoc for those who don't know - these are tools which autogenerate code documentation from specially formatted comments in source code).
The issue I have is that the edit mode for .php includes PHPDoc but doesn't include doxygen. I think the functionality should probably be that there is a default edit mode for php and a secondary edit mode which represents any auto-documentation edit mode types.
This would apply for people using java with javadoc, or php with phpdoc, or php with doxygen or c with doxygen etc. At the moment phpdoc edit mode seems to be hardwired in to php edit mode. I believe the primary / secondary edit mode work-around is more improved. Or at least have a way of selecting which auto-doc tool is to be associated with which files. I would like to be able to associate my php files with doxygen (as an editing mode) and not phpdoc.
Just a quick shout to all developers of this project... jEdit is awesome... especially as I develop on Windows, OSX and Linux at different times. It works on ALL of these... thanks thanks thanks

:)
Open programming manual when right mouse-clicking on keyword
Submitted by
xandrani on
Monday, 19 April, 2010 - 17:54
It would be great if somehow a right mouse-click (i.e. context menu) would allow an option to go direct to a relevant programming manual.
e.g. If I'm editing a PHP file and I right mouse-click on file_get_contents() then the entry for that function in php.net is opened in a web browser. This functionality currently exists in other text editors. It would really make things easier. A similar thing for C or C++ and other languages would of course be great too.
Another cool idea would be so that when the user hovers over a library function a large tooltip appears showing the definition of the function and a one line description of what it does.
Apologies if this is already implemented somehow... I could not find it if it is.
Another idea is that feature requests and bugs should be all on sourceforge. It would seem more sensible.
Thanks again to all people involved in creating jEdit... I'm loving it
Buffer Selector buggy in latest version?
Submitted by
smeet on
Wednesday, 21 April, 2010 - 23:46
I've been using Buffer Selector for a while with no problems in version 4.1final, and just upgraded JEdit to version 4.3.1 using java 1.6.0_18.
Buffer Selector now spews out stuff like this:
5:10:00 PM [AWT-EventQueue-0] [error] EditBus: Exception while sending message on EditBus:
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: java.lang.NoSuchMethodError: org.gjt.sp.jedit.EBMessage.getSource()Lorg/gjt/sp/jedit/EBComponent;
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at bufferselector.BufferSelector.handleMessage(Unknown Source)
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:212)
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:247)
>> 5:10:00 PM [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.EditBus.send(EditBus.java:188)
etc...
It appears to mostly work, but sometimes it won't update the current file when I click in a different buffer etc. Am I missing something, or is this plugin no longer supported?
Thanks for any help,
smeet
Console Plugin - Reading command output
Submitted by
weberjn on
Thursday, 22 April, 2010 - 11:43
Hi,
has somebody a sample of piping a text area to an external program and getting its output back like with vi
(http://www.linux.com/archive/feed/57727)?
I guess this should be possible, shouldn't it?
select text -> Console -> run current buffer gives "There is no interpreter associated with this buffer"
Thanks,
Juergen
JavaDoc style comments - automated user friendliness
Submitted by
xandrani on
Thursday, 22 April, 2010 - 15:37
The title sounds hideous but bear with me...
When I type:
/** and then hit enter.
It would be great if the next '*' would automatically appear on clicking enter:
/**
* <- space here for formatting.
Then if I clicked enter again, I'd get:
/**
* <- space here for formatting.
* <- space here for formatting.
When I add the final */ this auto-formatting ends;
/**
* <- space here for formatting.
* <- space here for formatting.
*/
[Note that the string "<- space here for formatting." is just to let you know that a space comes after the *'s each time. It would be blank in practise... I hoped that was obvious ;)]
It makes it really nice when writing JavaDoc / Doxygen / PHPDoc type comments. Of course as ever this should be an option, as it will annoy some people... we all have different tastes after all

Thanks
Can't use System.getProperty
Submitted by
kamcknig on
Thursday, 22 April, 2010 - 20:26
Hey everyone... I'm very very new to plugin development in jEdit, and java in general. I'm trying to use System.getProperty("os.name") so that I can determine the operating system a user is using. But I keep getting a stackoverflow error, with something about the JARClassLoader or something. I can't using anything in System actually. Every line I put that uses it, returns that same error.
Kyle
Strange mouse cursor
In the middle of editing a tcl file, the mouse cursor becomes an east-west arrowhead whenever I move the mouse cursor away from the editing area. This includes the menu bar, all menus, the buffer drop-down and the scroll bars. If I open a dialog such as the Global Options menu item, the mouse cursor is normal while the dialog is open. Once I close the dialog, the cursor goes back to the east-west arrowhead outside of the text area, but inside the jEdit app window.
Any ideas?
Thanks.
How to show a plugin title directly as menu item
Submitted by
qooraf on
Friday, 23 April, 2010 - 14:37
Hi,
I am relatively new to jEdit, and have couple of questions about plugin development.
1 - I like to show Plugin options as a separate menu item same as View or Search. How can i edit the props file to get this.
2 - Is it possible for one of my plugin to read the action string? If yes then any pointer on this would be really helpful.
Thanking you all in anticipation.
Cheers
Qooraf
list of macros, bracket matching, smart tabs
Submitted by
ludolf on
Sunday, 25 April, 2010 - 22:22
Where can I found possible commands for writing macros? Some I can find if I save a keyboard macro but they are not all (some others are in examples at the documentation).
Is it possible to have bracket matching - if I write e.g. "(" then ")" is added such that the caret is before it?
Is it possible to have a smart tab - jumping to columns of starts of words at the line above?
Thanks for any ideas, ludolf
Shift-Scroll Wheel scrolls horizontally?
Submitted by
smeet on
Tuesday, 27 April, 2010 - 19:28
This worked for me in previous versions (4.1 I believe).
From the docs (http://www.jedit.org/users-guide/scrolling.html):
> If you have a mouse with a scroll wheel, you can use the wheel to scroll up and down in the text area.
> Various modifier keys change the action of the wheel:
> Shift - scrolls an entire page at a time.
Other modifier keys work with the scroll wheel as documented, it's just the Shift that is different.
This doesn't work for me in 4.3, instead it scrolls horizontally. Is there a way to get back the page scrolling behavior?
Thanks!
Replicating installations
Submitted by
alsdias on
Wednesday, 28 April, 2010 - 14:06
Suppose that you already have an installation containing your plugins and configurations.
If you desire to replicate this installation to another machine, for instance a virtual machine, without having to do everything again, there is an alternative that works well if the new installation has the same path of the old. If not, some path adjustments may be necessary according to your environment.
1. Install jEdit as usually.
2. Copy the jEdit's user configurations under .jEdit folder overwriting the content of the respective .jEdit folder of the new installation.
For instance, on Vista you find .jEdit folder configuration under C:\Users\User_Login\.jedit, and on XP under C:\Documents and Settings.
3. Copy the full content under the INSTALL_DIR/jEdit, overwriting the full content of the respective INSTALL_DIR/JEdit of the new installation.
It's ready to run.
I use this procedure to replicate my jEdit's intallations on virtual machines.
Edit Mode for HLSL Shader Language (Update) (hlsl.xml v2 by Adam Sawicki)
Submitted by
Reg on
Saturday, 1 May, 2010 - 17:39
An update of Edit Mode for HLSL - DirectX shader language and effect file format. The HLSL Edit Mode is now in the official jEdit distribution, but it haven't been updated for long time. Now I've created new version that supports all new features up to the newest DirectX 11 (Shader Model 5), including these from the upcoming June 2010 version.
Recommended FILE_NAME_GLOB is "*.{fx,hlsl}", although the "fx" extension is already taken by "javafx" mode.
deleting current user?
is there a way for me to delete this user? I accidentally created it when i thought the old one was screwed up.
shortcuts
does anyone have an exported profile that i could use to set all the shortcuts to windows standard ones? it would be nice if you could just select a shortcut scheme... *plugin/feature request*
Some keywords not recognised for highlighting
Submitted by
ClivePage on
Monday, 10 May, 2010 - 14:27
I'm using Jedit version 4.3.1 on Windows XP, and editing some Fortran90. The syntax highlighting mostly works very well, but a few Fortran keywords did not get recognised (so they did not benefit from highlighting, and the Macro to convert all keywords to upper-case didn't work on them either).
For example data types INTEGER and REAL got recognised, but COMPLEX and DOUBLE PRECISION did not. And while nearly all other statement keywords in the code were ok, the CONTAINS statement was not.
I checked the fortran.xml file and all of these are present, so it's not obvious to me why a few keywords do not get recognised in my code.
I'm not sure if this is a bug, or just a feature, or if there's something in the way I have used these keywords that has confused the parser.
Here's a trivial example:
PROGRAM quadratic
IMPLICIT NONE
REAL :: a, b, c, term, root1, root2
COMPLEX :: cterm, croot1, croot2
PRINT *, 'Enter a, b, c:'
READ *, a, b, c
All keywords except COMPLEX are highlighted here.
jedit debian packages are not installable on debian testing
Submitted by
Archimedes on
Monday, 10 May, 2010 - 16:28
The debian packages of jedit (4.3.2) cant be installed with dpkg (im at debian testing and dpkg 1.15.7.1). The error is:
...
parse error in file '...' near line 7 package 'jedit'
duplicate value for 'Architecture' fiels
...
My last "install" time was the 4.3(.0) version, so i tried that deb, which results in the same error. For completness i checked the 4.3.1 version also, same result.
It seems that a change in dpkg causes this new more strict behaviuor.
The fix is quite simple:
I extracted the deb file and the "rules" stuff
mkdir jedit
dpkg -x jedit_4.3.2_all.dep jedit
mkdir jedit/DEBIAN
dpkg -e jedit_4.3.2_all.dep jedit/DEBIAN
remove the second "Architecture" line in the jedit/DEBIAN/control file and build a new one:
dpkg -c jedit
The resulting jedit.deb is installable without the error.
Issues with TaskList
Submitted by
hath on
Wednesday, 12 May, 2010 - 18:21
Hi,
I'm trying to use the TaskList plugin. Its working for the most part but it only seems to be able to parse and display thing in the current buffer. It has a tab for all Open files which would be really useful but it doesn't work. Right now I'm using a Sessions plugin and I'm wondering it could be the cause?
The only other plugins I have at the moment are quicknotepad, and TextAutoComplete.
multiple untitled buffers
Submitted by
mauricebis on
Friday, 14 May, 2010 - 07:19
Hi,
I'm using Jedit 4.3.1 on the following platform:
5:28:44 PM [main] [message] Log: java.version=1.6.0_17
5:28:44 PM [main] [message] Log: java.vm.version=14.3-b01
5:28:44 PM [main] [message] Log: java.runtime.version=1.6.0_17-b04
5:28:44 PM [main] [message] Log: java.vendor=Sun Microsystems Inc.
5:28:44 PM [main] [message] Log: java.compiler=null
5:28:44 PM [main] [message] Log: os.name=Linux
5:28:44 PM [main] [message] Log: os.version=2.6.24-16-generic
5:28:44 PM [main] [message] Log: os.arch=i386
For some reason, I've the screen cluttered with multiple untitled buffers (it goes until 17) which I can't close. I also suspect this has a negative impact on performance. In the hope that this bug can be fixed in the future, would there be a way to edit manually the file where Jedit's state is saved so that on reopening, these multiple untitled windows disappear?
Thanks.
Adding a shortcut to "Execute script" command of the superscript plugin.
Submitted by
sinarf on
Saturday, 15 May, 2010 - 14:42
I'd love to use jEdit for all my scripting work.
I installed the superscript plugin as explain here: http://groovy.codehaus.org/JEdit+Plugin
It's working fine but I couldn't find a way to add a keyboard shortcut to the "Execute script" button, and there is nothing available from the global options / shortcuts list or even in the plugin configuration.
Adding a shortcut to a command in jEdit is so basic stuff that I cannot believe it has not been done yet.
Before I try to dive into hacking the plugin to give access to the command from menus or shortcut, I thought I ask you guys if I didn't miss something?
Thanks in advance for any information.