Question #2: What special tags does the compiler recognize beyond normal HTML?
The THINK Reference allows you to use special TR tags to define the action of the buttons at the top of the Viewer, to link to other TR databases and pages, and to provide code snippets that can be copied to the clipboard. More tags are being developed. All TR tags are enclosed in HTML comments, so can maintain a single source set for web and THINK Reference. (click here for more details...)
The THINK Refence viewer has four buttons on the top of each page than can link to other pages in the database. These buttons are configured by special tags placed in the HTML before it's compiled. These tags are formatted as:
<!-- @TR BUTTON "the button name" "the page title" "the menu char" -->
"the button name" is the label on the button in the viewer. "The page title" is the name of the target page (as contained within the <TITLE> tags) of the html page that the button is to go to. "The menu char" sets the keyboard equivalent for the button and lists it under the "Reference" menu in the THINK Reference Viewer.
You can also specify links to other pages with the database by using the following tag:
<!-- @TR LINK -->Name of other page<!-- @TR /LINK -->
The text for the link must exactly match the title for the html page that the user wants to go to. This text will be underlined in the viewer.
<!-- @TR CODE -->"My Code"<!-- @TR /CODE -->
The text for the link must exactly match the title for the html page that the user wants to go to. This text will be underlined in the viewer.
Lastly, you can use the <!-- --> tags to enclose any comments.