EmEditor (text editor) Forum Index Questions and Answers about EmEditor Core
get help on function using standart chm files | Register To Post |
| Threaded | Oldest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| Stefan | Posted on: 4/3/2013 4:14 am |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 262 |
Re: Open chm help files for specific language lookup keywords Thanks Yutaka, this tool works on Win7 64-bit too.
Command: .\eehelptool.exe Arguments: .\_DOKU\AutoHotkey.chm $(WordText) I can utilize it as snippet too. But only with #cmd: `#cmd X:\\EmEditor\\eehelptool.exe X:\\EmEditor\\AHK\\AutoHotkey.chm ${WordText}` Unfortunately it doesn't works with ShellExecute: `- X:\\EmEditor\\eehelptool.exe X:\\EmEditor\\AHK\\AutoHotkey.chm ${WordText}` The command executes (i can tell from task manager) and the output panel opens, EE is busy... that's all. But i want to use ShellExecute to be able to use relative paths: `- eehelptool.exe AHK\\AutoHotkey.chm ${WordText}` Any suggestions please? Do I something wrongly? . |
| Yutaka | Posted on: 7/21/2011 2:35 pm |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2398 |
Re: Open chm help files for specific language lookup keywords Hi Stefan,
I rebuilt the program using the static library: http://www.emeditor.com/pub/eehelptool001.zip so you won't need the Visual C++ 2010 Redistributable Package any more. You might need to add all the tools, and those tools appear on the toolbar, but you can set the keyboard shortcut for each configuration. Therefore, you can customize the same shortcut key to launch both vbx.CHM for VBS doc and html.CHM for HTML doc. Thanks!
|
| Stefan | Posted on: 7/21/2011 12:35 am |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 262 |
Re: Open chm help files for specific language lookup keywords WOW Yutaka, thanks, works great.
I will test some more, but basically that's how i had imagine it. My experiences: First i got an error That's because i didn't have the "Visual C++ 2010 Redistributable Package" installed. I had only 2005 and 2008 installed. Now i got interim the MSVCR100.dll and put them in the same folder as the eehelptool.exe and it works fine. I have set up this tool as: Titel: short description, e.g. VBScript help file Command: path to eehelptool.exe, even relative to EmEditor folder, e.g. myDocus\eehelptool.exe Arguments: path to help file, even relative to EmEditor folder, e.g. myDocus\SCRIPT56.CHM $(WordText) Initial Dir: Icon Path: path to icon resource, e.g. %SystemRoot%\hh.exe for the default help file icon Note the " $(WordText)" after the CHM which will search the CHM for just that selected keyword. In fact, the keyword even have NOT to be selected, just the cursor right before the first char or after the last char is enough for "$(WordText)" to work. Great. Of course this "search for the keyword" feature will work only for CHM files which are compiled with an proper index. If not, or if you just want to open the CHM without jumping to the "selected" word, you don't need to include this " $(WordText)" part to your Arguments: definition. - - - I have found one improvement wish: the keyword is found and selected in the index tab, but i miss: * pressing enter (so to say) to open the page in the preview pane for ease use * having the focus in that preview pane to allow immediately scrolling Maybe that can be included too? - - - Question: will this tool be part of the core package or even be included in the EmEditor.exe? Maybe from interest for you: other editors allow to have one syntax related help file (like SCRIPT56.CHM for *.VBS) per syntax language configuration, and all are accessible via the same shortcut (like Alt+F1). Which CHM is opened depends on the currently active syntax configuration. If i am on an VBS doc, the vbs.CHM is launched. If i am on an HTML doc, my html.CHM is opened. So we didn't need to have 5 tools / toolbar icons / shortcuts just to open the syntax related help files. One would be enough. Just some ideas. Thanks for EmEditor. Great Tool. Well done. - Ah, thank CrashNBurn too. I have tried that before posting my question but found it not works well with relative paths and all over all that is not that easy for the average user (beginners) |
| Yutaka | Posted on: 7/20/2011 5:07 pm |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2398 |
Re: Open chm help files for specific language lookup keywords Hi Stefan,
I created a small program that can be used to open a CHM file with a keyword from EmEditor external tools. Please download http://www.emeditor.com/pub/eehelptool.zip You can specify external tool properties as: Command: the path to eehelptool.exe Arguments: "CHM file path" $(WordText) Please see the screenshot included in the zip file. I hope this tool helps you. Thanks!
|
| CrashNBurn | Posted on: 7/17/2011 1:35 pm |
Just can't stay away ![]() ![]() Joined: 4/8/2010 From: Posts: 130 |
Re: Open chm help files for specific language lookup keywords You could do it with AHK, and possibly an EMEditor Macro/Script assigned to a hotkey.
Example command: Quote: hh mk:@MSITStore:c:\program files\AutoHotkey\Autohotkey.chm::/docs/commands/_AllowSameLineComments.htm When viewing the helpfile in question, click on the 'Go' menu, and find the URL. If all the commands are within the same path, then it would just be a matter of generating the command to have the selected text. It's not exactly straight forward though, in my example, the actual command is "#AllowSameLineComments" - but it is stored in the path "_AllowSameLineComments" |
| Stefan | Posted on: 7/17/2011 12:37 pm |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 262 |
Open chm help files for specific language lookup keywords No answer here the last three years?
Hello there, I'm locking for the same: how can i open an help file for an language to lookup an keyword? I search a function to put the cursor at an word and then press an shortcut to open an defined help file (CHM), just for the current used language, which jumps to that word. How can i do this with EmEditor? I searched the properties for the language configuration and the tools configuration but found nothing. For example: for *VBS files i want to set the ".\docs\SCRIPT56.CHM" as language help file. And then i want to put the cursor on the word "msgbox", press an shortcut and want EmEditor to open ".\docs\SCRIPT56.CHM::MsgBox.htm" for me. |
| kulibin | Posted on: 3/2/2008 7:18 am |
Just popping in ![]() ![]() Joined: 3/1/2008 From: Posts: 4 |
Re: get help on function using standart chm files I found hack :)
I replaced emeditor.chm with my chm, and now using F1 i do search in it. But this is just hack, because only one programming language can be used with this method... |
| kulibin | Posted on: 3/1/2008 8:08 pm |
Just popping in ![]() ![]() Joined: 3/1/2008 From: Posts: 4 |
get help on function using standart chm files Is there a way to get help on function using standart chm files for language?
Suppose I work in php, and write in_array, but I don't remember what parameters and in what order it need. As always, I open help on php, and search for this function... And its so long... But it would be great if I could see this right from emeditor. |
| Threaded | Oldest First | Previous Topic | Next Topic | Top |
| Register To Post | |







