Dirhtml Help - Scripts

Dirhtml can incorporate additional html code into generated files by parsing a text file, called a "script."  Use this option to make your generated html files unique.   Please test all the scripts that come with dirhtml.

Dirhtml script files are divided into sections that start with /SOMETHING, where /SOMETHING is a section described in the dirhtml help files.  Sections can be absent, repeated, and in random order.  If a section is repeated, the text within it is appended to any existing data.  Anything in a script file before the first section is ignored and can be used for commenting the file.  Any script line that begins with // is considered a comment and ignored.

Using scripts is not as daunting as it may at first appear.  If you are not comfortable with coding html by hand, copy/paste code from the html editor of your choice.  Pressing F11 opens the current script in your default text editor.  A few scripts of increasing complexity are shown on the Script Lessons page.

Scripts can be in ASCII, UTF-8 or UTF-16LE text format.

If you are not sure what a particular section does, create a script with that section only and examine the html source of the file it builds.