TSMKHELP.DOC 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. .HTX File Format
  2. ================
  3. The help file format consists of 'pages' of ascii help text separated
  4. by help directives.
  5. Help text contains the text as it is to be displayed in the help window
  6. together with embedded 'meta-characters' to indicate highlighted titles
  7. and (user selectable) links to other help pages. Help page text must
  8. be less than or equal to 65 characters wide and 18 lines deep.
  9. Help directives are placed on seperate lines between each help page and
  10. are identified by a '!' character in the first column in the line.
  11. Types of directive include the following
  12. ! Label:
  13. This defines a label for the following help page that can act as the
  14. destination for the help link 'Label'.
  15. ! Label1=Label2
  16. This defines an 'alias' for a help label causing links to 'Label1'
  17. to be directed to 'Label2'. These aliases can be redefined within
  18. the help file. This allows text links with the same name to
  19. reference different pages.
  20. ! $case=off
  21. This defines that the help text is to be accessed in a case
  22. insensitive manner (e.g. for the language Pascal). This directive
  23. must appear at the top of the file and is global to that help
  24. file.
  25. ! $chain=filename
  26. This directive defines which helpfile to search if the key word is
  27. not found in the current helpfile. There can only be one chain file
  28. for each help file and it is global to the entire file.
  29. example:
  30. ! $chain=tsc.hlp
  31. ! Label>ExtFile|ExtLabel
  32. This defines that the destination label 'Label' is not within the
  33. current file but is located in the help file 'ExtFile'.
  34. Following the help link 'Label' will automatically load
  35. the help file 'ExtFile' and display the page with the label
  36. 'ExtLabel'
  37. !
  38. Null directive; This seperates pages of multi-page help text
  39. that can be displayed by Page Down and cannot be accessed directly
  40. from a page link.
  41. Multiple labels can be placed on a single help page allowing more
  42. than one text link to point to that page.
  43. Multiple directives can be put on a single line by seperating the
  44. commands by commas. eg
  45. !va_arg:, va_start:, va_end:
  46. There are 3 sets of meta-character brackets that can be placed (in
  47. pairs) in the help text. These can be inserted in text by pressing
  48. Ctrl-P followed by the character. Note the TopSpeed editor has built
  49. in highlighted display of text within these characters to make
  50. editing help text easier (to turn this off you can use Ctrl O C).
  51. The meta-characters are:
  52. Highlight: CHAR(3) text CHAR(3) (  text  )
  53. This caues the text within the brackets to be highlighted and
  54. is used for help page titles. The meta-characters are
  55. deleted from the displayed text.
  56. Link: CHAR(2) label CHAR(2) ( label )
  57. This sets up a 'text-link' which allows the user to move
  58. to the page specified by the label (spaces are not significant
  59. but case is significant) by selecting this link. The label is
  60. displayed in inverse (or high-inverse when the help cursor
  61. is on this link). The meta-characters are deleted.
  62. Ú a line containing only CHAR(218) starts defining a box the
  63. width of the page that can be used to surround a title.
  64. À a line containing only CHAR(192) finishes defining the box
  65. A short example help page
  66. --------------------------
  67. ! free:, alloc:, _heapset=heapinternal
  68. Ú
  69. void free(void *buffer);
  70. À
  71. header file : alloc.h source file : alloc.a
  72. The function free deallocates the block of memory buffer
  73. previously allocated by malloc, calloc or realloc. The number
  74. of bytes freed is that specified by the preceding call to malloc,
  75. calloc or realloc.
  76. Related Functions : calloc,_heapchk,_heapset,malloc,realloc
  77.