Softany Txt2Htm2Chm Reference Previous Topic Next Topic

CHM Templates

Generally, a CHM format template only need an html file(ContentTemplate) and its associated files such as .css, .js, image files, etc.

To get a template's template, copy from (installation folder)\tst\chm\.

Legal tags in CHM format:

TagDescription
($PROJECTTITLE$)Project Title.
($CHARSET$)Charset.
($TITLE$)The title of the topic.
($CONTENT$)The content of the topic.
($PREVIOUSPAGE$)The file name of the previous page.
($NEXTPAGE$)The file name of the next page.
($DEFAULTPAGE$)The file name of the default page.


Example

A ContentTemplate in a CHM template:

<html>
<head>
<title>($TITLE$)</title>
<meta http-equiv="Content-Type" content="text/html; charset=($CHARSET$)">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<span class="title">
($TITLE$)
</span><br>
<br>
<div class="content">
($CONTENT$)
<br>
<br>
</div>
</body>
</html>



Previous Topic Next Topic