home *** CD-ROM | disk | FTP | other *** search
/ Dr. Watson 2.0 / DRWATSON2.iso / UTILS / DN149 / DN155 / DN.HGL < prev    next >
Text File  |  1996-01-21  |  5KB  |  213 lines

  1. ; Dos Navigator Editor Syntax Highlight configuration file
  2. ; See details at the end of this file
  3.  
  4. ;HGL file
  5. ;1 FILES *.1/END
  6. ;2 Macro 1/Endmacro
  7. FILES *.HGL;
  8.   CommentStart ;
  9.   Macro 1
  10.     Print #1'FILES'#32'*.'#6^M^M'END'^M#5
  11.     End
  12.     Print #1#5#9
  13.   EndMacro
  14.   Macro 2
  15.     Print #1'Macro'#32#6^M^M'EndMacro'^M#5
  16.     End
  17.     Print #1#5#9
  18.   EndMacro
  19. END
  20.  
  21. ;Dos Navigator configuration files
  22. FILES DN.VWR; DN.EDT; DN.MNU; DN.XRN; DN.EXT
  23.   Comment ;
  24. END
  25.  
  26. ;Assembler files
  27. FILES *.ASM;
  28.   Comment ;
  29. END
  30.  
  31. ;Configuration files
  32. FILES *.CFG; *.EVT; *.INI
  33.   CommentStart ;#$%
  34.   Comments_Only
  35. END
  36.  
  37. ;Batch files
  38. FILES CONFIG.SYS;*.BAT
  39.   CommentString REM ,::,
  40.   CommentStart ::
  41.   COMMENTS_ONLY
  42.  
  43. ;Basic files
  44. FILES *.BAS
  45.   CommentString REM ,
  46. END
  47.  
  48. ;C/C++ files
  49. ;1 {}
  50. FILES *.CPP;*.C;*.H;*.HPP
  51.   AutoBrackets Off
  52.   CommentString //
  53.   C_Comments
  54.   Macro 1
  55.     Mark 9
  56.     Print '{'^M^M
  57.     Goto 9
  58.     MoveDown
  59.     MoveDown
  60.     Print '}'
  61.     MoveUp
  62.   EndMacro
  63. END
  64.  
  65. ;Pascal files
  66. ;1 - begin/end
  67. FILES *.PAS
  68.   Pas_Comments
  69.   Macro 1
  70.     Print 'begin'^M^M
  71.     Print 'end;'
  72.     WordLeft
  73.     MoveUp
  74.   EndMacro
  75. END
  76.  
  77.  
  78. ;
  79. ; Possible keywords:
  80. ;     FILES <filter>
  81. ;        <Highlight option>
  82. ;        ................
  83. ;        <Highlight option>
  84. ;        ................
  85. ;        <Macro>
  86. ;        ................
  87. ;        <Macro>
  88. ;     END
  89. ;
  90. ;  Options are:
  91. ;     COMMENT <Ch1>[Ch2]...[Ch5] - comment symbols for comment from
  92. ;                                  symbol position to the end of line.
  93. ;                                  eg(for assebler): Comment ;
  94. ;                                  It is possible to set max 5 symbols
  95. ;                                  in one layout
  96. ;
  97. ;     COMMENTSTART <Ch1>[Ch2]...[Ch5] - comment symbols for comment from
  98. ;                                  symbol position (start of line only) to
  99. ;                                  the end of line.
  100. ;                                  It is possible to set max 5 symbols
  101. ;                                  in one layout
  102. ;     COMMENTSTRING <S1>,[S2],...,[S3] - comment strings for comment from
  103. ;                                  string position to the end of line.
  104. ;                                  It is possible to set max 5 strings
  105. ;                                  in one layout
  106. ;     C_COMMENTS                 - Enable C-style comments ( /*....*/ )
  107. ;     PAS_COMMENTS               - Enable Pascal-style comments ( (*....*)
  108. ;                                  and {....} )
  109. ;                                  NB: Dos Navigator supports last two types
  110. ;                                      of comments in one line yet.
  111. ;     COMMENTS_ONLY              - Highlight comments only, do not highlight
  112. ;                                  strings, symbols and numbers.
  113. ;
  114. ;
  115. ;     Macro has following structure:
  116. ;
  117. ;      MACRO <Name>
  118. ;        commands
  119. ;      ENDMACRO
  120. ;
  121. ;       Macro Commands are:
  122. ;
  123. ;           Print '<String>' [repetitions] - type string <String>
  124. ;           GotoXY <X>, <Y>                - place cursor at X,Y (absolute)
  125. ;           GotoX  <X>         - place cursor at horisontal pos. X (absolute)
  126. ;           GotoY  <Y>         - place cursor at vertical pos. X (absolute)
  127. ;           Mark   <N>         - mark current position of cursor (1..9)
  128. ;           Goto   <N>         - go to marked position (1..9)
  129. ;
  130. ;        Each following command has format <COMMAND> [repetitions]:
  131.  
  132. ;         SaveText
  133. ;         LoadText
  134. ;         SaveTextAs
  135. ;         SwitchBlock
  136. ;         SwitchIndent
  137. ;         SwitchFill
  138. ;         SwitchBack
  139. ;         SwitchSave
  140. ;
  141. ;         WordLeft
  142. ;         WordRight
  143. ;         DelWordRight
  144. ;         DelWordLeft
  145. ;         ScrollUp
  146. ;         ScrollDn
  147. ;         Center
  148. ;         StartSearch
  149. ;         ContSearch
  150. ;         DelBackChar
  151. ;         DelChar
  152. ;         SwitchIns
  153. ;         PgUp
  154. ;         PgDn
  155. ;         MoveUp
  156. ;         MoveLeft
  157. ;         MoveRight
  158. ;         MoveDown
  159. ;         BlockStart
  160. ;         BlockEnd
  161. ;         MarkWord
  162. ;         MarkLine
  163. ;         BlockRead
  164. ;         BlockWrite
  165. ;         BlockPrint
  166. ;         IndentBlock
  167. ;         UnIndentBlock
  168. ;         Tab
  169. ;         SpecChar
  170. ;         Replace
  171. ;         End
  172. ;         Enter
  173. ;         InsLine
  174. ;         FJustify
  175. ;         FCenter
  176. ;         FLeft
  177. ;         FRight
  178. ;         LJustify
  179. ;         LCenter
  180. ;         LLeft
  181. ;         LRight
  182. ;         DeltoEOLN
  183. ;         SetMargins
  184. ;         CtrlHome
  185. ;         CtrlEnd
  186. ;         SwitchHighLight
  187. ;         GotoLineNumber
  188. ;         SwitchWrap
  189. ;         SwitchHiLine
  190. ;         SwitchHiColumn
  191. ;         UpString
  192. ;         LowString
  193. ;         CapString
  194. ;         UpBlock
  195. ;         LowBlock
  196. ;         CapBlock
  197. ;         InsertTime
  198. ;         InsertDate
  199. ;         SortBlock
  200. ;         CalcBlock
  201. ;         CopyBlock
  202. ;         MoveBlock
  203. ;         HideBlock
  204. ;         MoveBlockStart
  205. ;         MoveBlockEnd
  206. ;         InsertOn
  207. ;         InsertOff
  208. ;         IndentOn
  209. ;         IndentOff
  210.  
  211.  
  212.  
  213.