Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #5528
    kulibin
    Member

    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.

    #5529
    kulibin
    Member

    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…

    #9502
    Stefan
    Participant

    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 “.docsSCRIPT56.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 “.docsSCRIPT56.CHM::MsgBox.htm”
    for me.

    #9503
    CrashNBurn
    Member

    You could do it with AHK, and possibly an EMEditor Macro/Script assigned to a hotkey.

    Example command:

    hh mk:@MSITStore:c:program filesAutoHotkeyAutohotkey.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”

    #9509
    Yutaka Emura
    Keymaster

    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!

    #9510
    Stefan
    Participant

    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


    ---------------------------
    eehelptool.exe - Komponente nicht gefunden
    ---------------------------
    This application has failed to start because MSVCR100.dll was not found. Re-installing the application may fix this problem.
    Die Anwendung konnte nicht gestartet werden, weil MSVCR100.dll nicht gefunden wurde. Neuinstallation der Anwendung könnte das Problem beheben.
    ---------------------------
    OK
    ---------------------------

    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. myDocuseehelptool.exe
    Arguments: path to help file, even relative to EmEditor folder, e.g. myDocusSCRIPT56.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)

    #9511
    Yutaka Emura
    Keymaster

    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!

    #10905
    Stefan
    Participant

    Thanks Yutaka, this tool works on Win7 64-bit too.

    Command: .eehelptool.exe
    Arguments: ._DOKUAutoHotkey.chm $(WordText)

    I can utilize it as snippet too.

    But only with #cmd:
    `#cmd X:EmEditoreehelptool.exe X:EmEditorAHKAutoHotkey.chm ${WordText}`

    Unfortunately it doesn’t works with ShellExecute:
    `- X:EmEditoreehelptool.exe X:EmEditorAHKAutoHotkey.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 AHKAutoHotkey.chm ${WordText}`

    Any suggestions please?
    Do I something wrongly?

    .

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.