Commands must start in the very first column of a line, and can be the only thing on the line. If a line begins with an @ sign, then it is interpreted as a command.
The following commands can be used in the global section of a database.
@$VER: <AmigaDOS version string> Specify the version of the database. This command must always be in upper-case.
@(C) <copyright> Specify the copyright notice for the database.
@AUTHOR <name> Specify the author of the database.
@DATABASE <name> Must be the very first line of an AmigaGuide document.
@DNODE <name> Indicates the start of a dynamic node. The AmigaGuide system uses the callback hooks to obtain the document from a document provider. This is obsolete, do not use.
@FONT <name> <size> Specify the font to use for the database.
@HEIGHT <chars> How high, in characters, the largest document is.
@HELP <name/node> Specify the name of the help node, which will be accessed by the Help button. Can be a node in an external database.
@INDEX <name/node> Specify the name of the index node, which will be accessed by the Index button. Can be a node in an external database.
@MACRO <name> <commands> This is used to construct a macro. A macro can be used the same way as an attribute command, and can only consist of other attribute commands or macros. The macro list is searched before the attribute command list is searched. This is new for V40.
@macro icom "@{i}$1 @{ui}"
...
This is an @{icom "example"} of macro.
@MASTER <path> Complete path of the source document used to define this AmigaGuide database.
@NODE <name> <title> Indicate the start of a node (page/article/section). The first node, or main node, must be named MAIN. MAIN must be the master table of contents for the database.
@ONCLOSE <rxcommand> This is used to specify an ARexx macro file to execute when the database is closed. The return value of the script has no effect on the database. New for V40.
@ONOPEN <rxcommand> This is used to specify an ARexx macro file to execute when the database is opened. If the script returns an error, then the database will not be opened. New for V40.
@REM <remark> @REMARK <remark> This is used to place remarks in the database. These remarks are not displayed to the user.
@SMARTWRAP This is used to indicate that the text of the database is to wordwrapped using a more intelligent algorithm than @wordwrap. A paragraph doesn't need to be restricted to one physical line, but paragraphs must be separated by two line feeds. New for V40.
@TAB <num> Number of spaces in a tab. Defaults to 8. New for V40.
@WIDTH <chars> How wide, in characters, the largest document is.
@WORDWRAP Turn on wordwrapping for the whole database. A paragraph must be restrained to one physical line.
A backslash is the escape character. A backslash in front of the @ sign is used to escape it. The backslash has no effect as an escape character inside commands such as @ONOPEN or @{".." LINK ..}; in cases like these it is treated as a regular character. Please note that AmigaGuide V35 does not treat the backslash character as an escape character.
@ENDNODE <name> Indicate the end of a node. Must start at the beginning of a line.
@FONT <name> <size> Specify the font to use for the node.
@HELP <name/node> Specify the name of the help node, which will be accessed by the Help button. Can be a node in an external database.
@INDEX <name/node> Specify the name of the index node, which will be accessed by the Index button. Can be a node in an external database.
@KEYWORDS <keywords> Keywords of the node. Someday when searching is reimplemented, there will be a keyword search.
@NEXT <node name> Node to display when the user selects "Browse >"
@ONCLOSE <rxcommand> This is used to specify an ARexx macro file to execute when the node is closed. The return value of the script has no effect on the node. New for V40.
@ONOPEN <rxcommand> This is used to specify an ARexx macro file to execute when the node is opened. If the script returns an error, then the node will not be opened. New for V40.
@PREV <node name> Node to display when the user selects "< Browse"
@SMARTWRAP This is used to indicate that the text of the node is to wordwrapped using a more intelligent algorithm than @wordwrap. A paragraph doesn't need to be restricted to one physical line, but paragraphs must be separated by two line feeds. New for V40.
@TAB <num> Number of spaces in a tab. Defaults to 8. New for V40.
@TITLE <title> Title to display in the title bar of the window during the display of this node. Must start at the beginning of a line.
@TOC <node name> Name of the node that contains the table of contents for this node. Defaults to MAIN. This is the node that is displayed when the user presses the "Contents" button.
@WORDWRAP Turn on wordwrapping for the node. A paragraph must be restrained to one physical line.
@{<label> <command>} Indicate a textual link point. Can be anywhere in a line. Starting with 3.0, AmigaGuide can can link to graphics, sounds, animations and other DataTypes.