home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / fte0827.zip / config / m_java.fte < prev    next >
Text File  |  1999-05-16  |  2KB  |  48 lines

  1. colorize JAVA {
  2.     SyntaxParser        = 'C';
  3.     
  4.     color {
  5.         { 'Normal',        'Lang_Default' },
  6.         { 'Number',        'Lang_DecimalNumber' },
  7.         { 'HexNumber',     'Lang_HexNumber' },
  8.         { 'Punctuation',   'Lang_Punctuation' },
  9.         { 'String',        'Lang_String' },
  10.         { 'Comment',       'Lang_Comment' },
  11.         { 'CPreprocessor', 'Lang_Preprocessor' },
  12.         { 'Function',      'Lang_Function' },
  13.         { 'Label',         'Lang_Label' },
  14.     };
  15.     
  16.     keyword 'Editor_Keywords' {
  17.         'abstract',  'default',  'goto',       'null',      'synchronized',
  18.         'boolean',   'do',       'if',         'package',   'this',
  19.         'break',     'double',   'implements', 'private',   'threadsafe', 
  20.         'byte',      'else',     'import',     'protected', 'throw', 
  21.         'byvalue',   'extends',  'instanceof', 'public',    'transient',
  22.         'case',      'false',    'int',        'return',    'true',
  23.         'catch',     'final',    'interface',  'short',     'try',
  24.         'char',      'finally',  'long',       'static',    'void',
  25.         'class',     'float',    'native',     'super',     'while',
  26.         'const',     'for',      'new',        'switch',    'continue', 
  27.         'throws'
  28.     };
  29. }
  30.  
  31. mode JAVA: PLAIN {      # JAVA Mode
  32.     FileNameRx          = /\.\c{JAVA}$/;
  33.     HilitOn             = 1;
  34.     Colorizer           = 'JAVA';
  35.     AutoIndent          = 1;
  36.     IndentMode          = 'C';
  37.     TabSize             = 8;
  38.     SpaceTabs           = 1;
  39.     MatchCase           = 1;
  40.     Trim                = 1;
  41.     MultiLineHilit      = 1;
  42.     AutoHilitParen      = 1;
  43.     
  44.     SaveFolds           = 2;      # save fold info at end of line
  45.     CommentStart        = ' /*';
  46.     CommentEnd          = '*/';
  47. }
  48.