前言
Windows的chm帮助文档学习笔记
打开帮助文档
解压帮助文档
<dir>:解压后的文件夹名
1
| hh -decompile .\\<dir> <file>.chm
|
创建帮助文档
下载依赖
- 在微软官方文档通过
Download Htmlhelp.exe下载HTML Help Workshop
Wayback Machine
定义帮助文档内容
x.html1 2 3 4 5 6 7 8 9 10
| <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body>
</body> </html>
|
定义配置文件
<file>.chm:定义文件名
x.html:帮助文档内容
x.hhp1 2 3 4 5 6 7 8
| [OPTIONS] Compatibility=1.1 or later Compiled file=<file>.chm Display compile progress=No Language=0x804 中文(中国)
[FILES] x.html
|
通过配置文件创建帮助文档
x.hhp:配置文件
1
| "C:\Program Files (x86)\HTML Help Workshop\hhc.exe" x.hhp
|
完成
参考文献
CSDN——RobotB