【笔记】Windows的chm帮助文档学习笔记

前言

Windows的chm帮助文档学习笔记

打开帮助文档

1
hh <file>.chm

解压帮助文档

<dir>:解压后的文件夹名

1
hh -decompile .\\<dir> <file>.chm

创建帮助文档

下载依赖

Wayback Machine

定义帮助文档内容

  • 通过HTML文件定义文档内容
x.html
1
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.hhp
1
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