jEdit Community - Resources for users of the jEdit Text Editor
PHP Documentation: how to add it in jEdit?
Submitted by Tomas Cerkauskas on Monday, 27 October, 2008 - 10:23
How can I do that?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
create a macro
by homeathouse on Wed, 29/10/2008 - 10:06
create a macro set to the F1 key.

[code]
if (textArea.getSelection().length > 0) {
CHM_location += "::/_function.html#" + textArea.getSelectedText();
}
exec("HH " + CHM_location);
[/code]

from http://www.php.net/docs-echm.php

jEdit: Users of this editor can grab and adjust this BeanShell macro. Save it as [jEdit Settings Folder]/macros/PHP/Open_in_PHP_Manual.bsh. You can also assign a hotkey and/or a context menu option to it.
CHM_location = "C:\\PHP\\php_manual_en.chm";
 
updated
by homeathouse on Wed, 29/10/2008 - 10:22
Download manual with php function reference from
http://us.php.net/get/php_manual_en.chm/from/a/mirror
and save to
C:\Program Files\jEdit\macros\php_manual_en.chm

Then create a macro "C:\Program Files\jEdit\macros\Open_in_PHP_Manual.bsh":

CHM_location = "C:\\Program Files\\jEdit\\macros\\php_manual_en.chm";
if (textArea.getSelection().length > 0) {
CHM_location += "::/en/function."+textArea.getSelectedText()+".html";
}
exec("HH " + CHM_location);
 
general chm files
by Robert Schwenn on Wed, 29/10/2008 - 20:17
Hi,
do You know a way to retrieve the right location in other CHM files? I'd really like to use some CHM files for getting help from within jedit (resp. from command line).

Robert
 
Ya, open the chm file, "C:\Pr
by homeathouse on Thu, 30/10/2008 - 00:45
Ya, open the chm file, "C:\Program Files\jEdit\macros\php_manual_en.chm" in the example above.

Then open any function reference page from the Index tab, for example stripslashes(). Right click in the window on the right and select Properties. In the new window you'll see Address: (URL) something like
"mk:@MSITStore:C:\Program%20Files\jEdit\macros\php_manual_en.chm::/en/function.stripslashes.html"

The last part of the URL is where the function gets inserted (between function. and .html).

CHM_location += "::/en/function."+textArea.getSelectedText()+".html";
 
search?
by Robert Schwenn on Thu, 30/10/2008 - 21:15
Very nice, thanks!

But of course Eye-wink now comes the next problem: One of the chm files I'm interested in is the Windows Scripting Doc. And the interesting URL's follow different rules (i.e "vsfctyyyy", "vsmthyyyy" and so on), so You can only show one type of key words.

So I wonder if there were a special URL to do some sort of searching. The command line of hh.exe seems not to support a search.

Another thought is: UltraEdit (which is a native Windows program) does an index search for the desired word in the CHM file. I guess UltraEdit uses the HTMLHelp API. Cold this be done from within jEdit too (via any library jar an a macro)?

Robert
User login
Browse archives
« April 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
 
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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293