HTML HelpCHM (HTML Help) files are currently the most popular form of help in MS Windows programs. The CHM file contains plain HTML documents, as well as images, table of contents, index, and data for referring to particular documents from the program for which the above help is created. Spider supports the creation of such files by providing a very convenient interface. To compile a CHM file, however, you need to install HTML Help Workshop. Installing MS HTML Help Workshop The MS HTML Help Workshop program should be downloaded from the Microsoft MSDN site. After downloading the program, install it on your system. The next step is to indicate the access path to the HTML Help compiler - the hhc.exe program in the Spider's settings. By default it is as follows: C:\Program Files (x86)\HTML Help Workshop\hhc.exe . You can display the settings window for indicating the path by using the command in the Main menu / Display / General program settings / Customize Tidy and additional tools. After opening the above window, go to the HTML Help tab and point to the path. Quickly compile a folder to a CHM fileThe easiest way to create an HTML Help file is to compile the entire folder into a CHM file. You can do this by using the Quick HTML Help tool from the folder. You can run this tool using the command in Main Menu / HTML Help / Compiling a Folder to HTML Help . After selecting the folder to compile and setting the other options(detailed description of the window is here), click on the "Compile" button. The tool will create a list of files and then compile the help file. If the build completes successfully, you will see a build progress report and then ask if you want to view the compiled CHM file. The compilation can take from a few to tens of seconds depending on the speed of your computer and the number and size of files included in the target help file. Using a project, which is an HTML Help projectA significant convenience when creating help in CHM format is the ability to define a Project as an HTML Help Project. To do this, check the option "This project is also an HTML Help project" in the second tab of the Project Properties window. This way you will have all the settings of the current HTML Help project available from one place. Preparing a project in the HTML Help editor After selecting the above-mentioned options, you need to do a few more steps to create the main project file (* .HHP). To do this, click "Edit project" in the website settings window. This will open the HTML Help Project Editor . The first thing to do is to select the folder that contains the files that are to be included in the HTML Help project. It is advisable that all the files included in this project be located in this folder, or in subfolders within it. You specify the project folder using the command at the top of the window. Then you can click the "Save Current HTML Help Project" command on the right. You will be hinted to enter the name of the target *.CHM file. The cursor will automatically be placed in the corresponding field of the Editor under "General Project Settings". The next step is to add all files that should be included in the help to the "Project files to be embedded" list in the first tab of the editor window. This is especially important for files, which are not explicitly declared in HTML Help documents, e.g. images used in button hovering effects etc. Other files linked directly in HTML tags will be automatically included in the CHM file by the compiler. If you want to see the initial document immediately after opening the CHM file, you need to select it in the "Default start page" field (in the upper left part of the second editor tab). Create a table of contents To make it easier for users to use Help, create a table of contents. To do this, run HTML Help Table of Contents Editor . You can do this by using the command on the second tab of the HTML Help Project Editor, as well as from the Main Menu / HTML Help . In the first case, after saving the table of contents file, it will be automatically assigned to the project. Otherwise, you will have to enter the name of the table of contents file in the project editor manually. In the table of contents, you can insert Categories (in the help for Spider, these are like 'folders' How do I do this? etc.), and in each category you can insert its elements, like further subcategories and items. You can do this using the commands to the right of the table of contents item list. The item differs from the category in that it cannot contain subitems. However, it is possible to convert categories into items and vice versa (in the "Item Settings" tab). In the same tab you can assign to each category and item a document that will be displayed on this item in the table of contents. Remember to click on the "Update item data" button after each change in the item settings. For a detailed description of the tool, see the Table of Contents Editor HTML Helptopic. Create an index The index (index) allows you to view all of the help topics. This is a list of all topics contained in the CHM file. Using the HTML Help Index Editor you can create an index project (* .HHK file). Creating it is very similar to creating a table of contents, except that you cannot create categories - all items are placed sequentially in one list. To quickly create a index, you can use the "Convert folder contents to index" command on the right side of the index list. In the submenu that appears, you can set several options to better suit your needs. Searching in the HTML Help Compilation in the current project When everything is ready, you can compile the project. To do this, use the "Compile Project" command in the Main Menu / HTML Help / HTML Help of the current site, or in the Project Properties window. |
Related topics |