AppleScriptDoc is special comments in source cocde. The comments starts with "(*!" and ends with "*)" are AppleScriptDoc region. In this region, texts are markuped with tags starts with "@".
Before detail explanation, see the following sample.
There are two tags of @title and @group. The contents of these tags are the text until end of the markuped line.
Required tag is only @title. @group is optional.
The title of the manual. Only one @title must exists.
This tag is used to add heading sections to indicate groups of handlers. This tag is optional.
The tags to describe each handlers are listed. The order of tags is not important. But these tags should be placed in the comment region right before the handler definition.
The contents of these tags is the line having a tag and lines until next tag apears.
The required tag is only @abstruct.
A abstruct of handler's explanation. The abstruct is outputed in both of the index page and the handelr page.
A detail description of the handler. The description is outputed only in the handler page.
A description of a parameter. List this tags of the number of parameters.
The description of the result of the handler.
Describe calling syntax of the handler. Usually this tag should be omitted. If ommited, the syntax is obtained from the definition of the handler located just after the comment region of AppleScriptDoc.
The contents of this tag must be code which can be compiled as AppleScript.
The sample code of AppleScript can be placed between @example tag and @end tag.
The word enclosed with "((<" and ">))" means a hyperlink, like "((<keyword>))"
The correlations betwen a keyword and an url are defined in the region of continuous lines below @reference tag. List keywords and URLs sepatating with double vertical bars "||", as follows.
@references keyword1 || http://link.url.com keyword2 || mailto:hallo@mail.co.jp keyword3 || ../path/from/index/page.html
The region of the contents of @references tag is ended with an empty line or the other tag.
In the following regions of AppleScriptDoc, paragraphs and lists can be described.
The formatting rules abeve regions are as follows. The rules are smilar to RD.
A line starts with continuous "=" is heading. The level of heading is determined by the number of the "=".
= formated as h1 element
== formated as h2 element
=== formated as h3 element
・・・
The lines separated with empty lines are paragraphs. The paragraphs is formatted as p element (<p> ~ </p>) of HTML.
The lines stats with spaces or tabs are vervatim (preformated text). These lines are formatted as a pre element (<pre> ~ </pre>) of HTML.
The oreder list and the unordred list can be used. The level of list items are determined by the indent levels of the lines.
The begining of lines are numberd as (1), (2) ....
The lines starts with "*".
You can use XHTML's inline elements for styles and external links.
You must use HTML tags. Characters of "<", ">", "&", """ except HTML tags are endoded to HTML entities.