home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / list1_56.zip / LIST2 / LIST2.SET < prev    next >
Text File  |  1994-10-27  |  8KB  |  372 lines

  1. ;*[f*--------------------------------oOo-----------------------------------
  2. ;
  3. ; $Id: $
  4. ; $Source: $
  5. ;
  6. ; This is an example LIST2 settings file.
  7. ;
  8. ; You can set a variety of list2 items in this file.
  9. ; * Key bindings
  10. ; * Colours for status lines
  11. ; * Colours for file manager
  12. ; * Colours for buffer list
  13. ; * Other global list2 settings
  14. ; * Styles, including syntax highlighting
  15. ;
  16. ; In this file you can specify the styles which LIST2 will apply
  17. ; to files with specific extensions.
  18. ;
  19. ; Files with either no extension or with an extension which is not
  20. ; listed here will use the LIST2 defaults.
  21. ;
  22. ; $Log: $
  23. ;
  24. ; (C) 1994 Warp Factor 7, All rights reserved.
  25. ;
  26. ; Comments start with a ; and end at EOL. The ; must be the first
  27. ; non whitespace character on the line
  28. ;
  29. ; The syntax for the style heading is as follows
  30. ; Keyword StyleName File-Ext-List Inherited-Styles
  31. ; Style   Pascal    (.pas)          Base Default...
  32. ;
  33. ; These settings if present will override the settings made with the LIST2
  34. ; command keys.
  35. ;
  36. ; All styles inherit from the settings made with the LIST2 command keys,
  37. ; this allows a style to just override the elements which is requires
  38. ; changes to.
  39. ;
  40. ;*f]*--------------------------------oOo-----------------------------------
  41. ;
  42. ; A style with an * as the file extension list will apply to files with
  43. ; extensions for which no style has been explicitly defined.
  44. ; There can only be one such style defined
  45. ;
  46. Style Default (*)
  47. {
  48.     Editor                    => b2.exe
  49. }
  50.  
  51. ;
  52. ; This is a base style which is useful for programming languages
  53. ; the empty () indicates that this style does not apply to
  54. ; any file type
  55. ;
  56. Style Base () Default
  57. {
  58.     SymbolsColor            => Yellow
  59.     CommentColor            => DarkGray
  60.     StringColor                => LightRed
  61.     ReservedColor            => Magenta
  62.     PreprocessorColor        => Green
  63.     NumberColor                => Blue
  64.     IdentColor                => Brown
  65.  
  66.     ; if the following items are not specified they will use
  67.     ; the LIST2 settings that the user has selected.
  68.     ; These items can be overridden for derived styles
  69.     ForeGndColor            => LightGray
  70.     BackGndColor            => Black
  71.     SelectedForeGndColor    => White
  72.     SelectedBackGndColor    => LightGray
  73.     BoldColor                => White
  74.     UnderlineColor            => Brown
  75.     BoldUnderlineColor    => Yellow
  76.     ExpandTabs                => ON
  77.     HighBitFilter            => OFF
  78.     TextWithLayout            => OFF
  79.     TabWidth                    => 4
  80.     DisplayMode                => Text
  81.     TopLineFormat            => 1
  82. }
  83.  
  84. Style Zip (.zip) Default
  85. {
  86.     ExternalFilter            => unzip -v %s
  87.     Editor                    =>
  88. }
  89.  
  90. Style Binary (.exe .com .dll .ico) Default
  91. {
  92.     ; hex mode automatically turns off TextWithLayout/Highbit filter etc..
  93.     DisplayMode                => Hex
  94. }
  95.  
  96. ; assume .DOC is Wordstar and not Microsoft Word
  97. Style Wordstar (.doc) Base
  98. {
  99.     TabWidth                    => 3
  100.     TextWithLayout            => ON
  101.     HighBitFilter            => ON
  102.     Editor                    => b2.exe -h
  103. }
  104.  
  105. Style UnixManPage (.man .1) Base
  106. {
  107.     TabWidth                    => 3
  108.     TextWithLayout            => ON
  109.     HighBitFilter            => ON
  110.     Editor                    => b2.exe -h
  111. }
  112.  
  113. Style C (.c .h) Base
  114. {
  115.     ForeGndColor            => LightGray
  116.     BackGndColor            => Black
  117.     TabWidth                    => 3
  118.     Reserved                 => asm
  119.                                 => auto
  120.                                 => break
  121.                                 => case
  122.                                 => cdecl
  123.                                 => char
  124.                                 => const
  125.                                 => continue
  126.                                 => default
  127.                                 => double
  128.                                 => do
  129.                                 => else
  130.                                 => enum
  131.                                 => extern
  132.                                 => far
  133.                                 => float
  134.                                 => for
  135.                                 => goto
  136.                                 => huge
  137.                                 => if
  138.                                 => interrupt
  139.                                 => int
  140.                                 => long
  141.                                 => near
  142.                                 => pascal
  143.                                 => register
  144.                                 => return
  145.                                 => short
  146.                                 => signed
  147.                                 => sizeof
  148.                                 => static
  149.                                 => struct
  150.                                 => switch
  151.                                 => typedef
  152.                                 => union
  153.                                 => unsigned
  154.                                 => void
  155.                                 => volatile
  156.                                 => while
  157.     Symbols                     => {}[]().=+-*/:;<>|&,~!^?
  158.     Strings                     => '"
  159.     Escape                     => \
  160.     OpenComment             => /*
  161.     CloseComment             => */
  162.     SingleLineComment        =>
  163.     CommentColumn             =>
  164.     NumberPrefix             => 0X
  165.                                 => 0x
  166.     OpenPreprocessor         => #
  167.     ClosePreprocessor     =>
  168.     LineContinuation        => \
  169.     CaseSensitive             => YES
  170.     Editor                    => b2.exe
  171. }
  172.  
  173. Style C++ (.cpp .hpp .cxx .hxx) C
  174. {
  175.     Reserved                 => class
  176.                                 => delete
  177.                                 => friend
  178.                                 => inline
  179.                                 => new
  180.                                 => operator
  181.                                 => private
  182.                                 => protected
  183.                                 => public
  184.                                 => template
  185.                                 => this
  186.                                 => throw
  187.                                 => try
  188.                                 => catch
  189.                                 => virtual
  190.     SingleLineComment        => //
  191. }
  192.  
  193. Style List2Style (.set) Base
  194. {
  195.     TabWidth                    => 3
  196.     Reserved                    => Style
  197.                                 => Reserved
  198.                                 => SymbolsColor
  199.                                 => CommentColor
  200.                                 => StringColor
  201.                                 => ReservedColor
  202.                                 => PreprocessorColor
  203.                                 => NumberColor
  204.                                 => IdentColor
  205.                                 => ForeGndColor
  206.                                 => BackGndColor
  207.                                 => SelectedForeGndColor
  208.                                 => SelectedBackGndColor
  209.                                 => StatusForeGndColor
  210.                                 => StatusBackGndColor
  211.                                 => BoldColor
  212.                                 => UnderlineColor
  213.                                 => BoldUnderlineColor
  214.                                 => RegularExpressions
  215.                                 => Sound
  216.                                 => Strings
  217.                                 => Symbols
  218.                                 => Escape
  219.                                 => OpenComment
  220.                                 => CloseComment
  221.                                 => SingleLineComment
  222.                                 => CommentColumn
  223.                                 => NumberPrefix
  224.                                 => OpenPreprocessor
  225.                                 => ClosePreprocessor
  226.                                 => CaseSensitive
  227.                                 => ExpandTabs
  228.                                 => HighBitFilter
  229.                                 => TextWithLayout
  230.                                 => TabWidth
  231.                                 => DisplayMode
  232.                                 => TopLineFormat
  233.                                 => ON
  234.                                 => OFF
  235.                                 => YES
  236.                                 => NO
  237.                                 => Text
  238.                                 => Hex
  239.                                 => Black
  240.                                 => Blue
  241.                                 => Green
  242.                                 => Cyan
  243.                                 => Red
  244.                                 => Magenta
  245.                                 => Brown
  246.                                 => LightGray
  247.                                 => DarkGray
  248.                                 => LightBlue
  249.                                 => LightGreen
  250.                                 => LightCyan
  251.                                 => LightRed
  252.                                 => LightMagenta
  253.                                 => Yellow
  254.                                 => White
  255.     Symbols                     => >=(){}.
  256.     SingleLineComment        => ;
  257.     CommentColumn             =>
  258.     CaseSensitive             => NO
  259.     Editor                    => b2.exe
  260. }
  261.  
  262. Style Pascal (.pas .inc) Base
  263. {
  264.     Reserved                 => AND
  265.                                 => ARRAY
  266.                                 => ASM
  267.                                 => BEGIN
  268.                                 => BOOLEAN
  269.                                 => BYTE
  270.                                 => CASE
  271.                                 => CHAR
  272.                                 => COMP
  273.                                 => CONST
  274.                                 => CONSTRUCTOR
  275.                                 => DESTRUCTOR
  276.                                 => DIV
  277.                                 => DOUBLE
  278.                                 => DOWNTO
  279.                                 => DO
  280.                                 => ELSE
  281.                                 => END
  282.                                 => EXIT
  283.                                 => EXTENDED
  284.                                 => EXTERNAL
  285.                                 => FALSE
  286.                                 => FILE
  287.                                 => FORWARD
  288.                                 => FOR
  289.                                 => FUNCTION
  290.                                 => GOTO
  291.                                 => IF
  292.                                 => IMPLEMENTATION
  293.                                 => INTEGER
  294.                                 => INTERFACE
  295.                                 => IN
  296.                                 => LABEL
  297.                                 => LONGINT
  298.                                 => MOD
  299.                                 => NIL
  300.                                 => NOT
  301.                                 => OBJECT
  302.                                 => OF
  303.                                 => ORD
  304.                                 => OR
  305.                                 => PACKED
  306.                                 => PRIVATE
  307.                                 => PROCEDURE
  308.                                 => PROGRAM
  309.                                 => REAL
  310.                                 => RECORD
  311.                                 => REPEAT
  312.                                 => SET
  313.                                 => SHL
  314.                                 => SHR
  315.                                 => SHORTINT
  316.                                 => SINGLE
  317.                                 => STRING
  318.                                 => THEN
  319.                                 => TO
  320.                                 => TRUE
  321.                                 => TYPE
  322.                                 => UNIT
  323.                                 => UNTIL
  324.                                 => USES
  325.                                 => VAR
  326.                                 => VIRTUAL
  327.                                 => WHILE
  328.                                 => WITH
  329.                                 => WORD
  330.                                 => XOR
  331.     Symbols                     => @().=*+-/[],<>:;
  332.     Strings                     => '
  333.                                 => "
  334.     OpenComment             => (*
  335.                                 => {
  336.     CloseComment             => *)
  337.                                 => }
  338.     SingleLineComment     =>
  339.     CommentColumn             =>
  340.     NumberPrefix             => $
  341.                                 => #
  342.     OpenPreprocessor         => {$
  343.     ClosePreprocessor     => }
  344.     CaseSensitive             => NO
  345.     Editor                    => b2.exe
  346. }
  347.  
  348. Style BatchFile (.bat) Base
  349. {
  350.     Reserved                 => SET
  351.                                 => PROMPT
  352.                                 => ECHO
  353.                                 => IF
  354.                                 => ON
  355.                                 => OFF
  356.                                 =>    DO
  357.                                 => NOT
  358.                                 => PATH
  359.                                 => LOADHIGH
  360.    Symbols                    => @.[]$\/:
  361.     Strings                     => '
  362.                                 => "
  363.     SingleLineComment     => REM
  364.     CaseSensitive             => NO
  365.     Editor                    => b2.exe
  366. }
  367.  
  368. ;------------------------------------oOo-----------------------------------
  369. ; (C) 1994 Warp Factor 7, All rights Reserved.
  370. ;------------------------------------oOo-----------------------------------
  371.  
  372.