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

  1. # C mode
  2.  
  3. colorize C {
  4.     SyntaxParser = 'C';
  5.  
  6.     color {
  7.     { 'Normal',       'Editor_Default' },
  8.     { 'Number',       'Lang_DecimalNumber' },
  9.     { 'HexNumber',       'Lang_HexNumber' },
  10.     { 'Punctuation',   'Lang_Punctuation' },
  11.     { 'String',       'Lang_String' },
  12.     { 'Comment',       'Lang_Comment' },
  13.     { 'CPreprocessor', 'Lang_Preprocessor' },
  14.     { 'Function',       'Lang_Function' },
  15.     { 'Label',       'Lang_Label' },
  16.     };
  17.  
  18.     keyword 'Editor_Keywords' { # any missing ?
  19.     'do', 'if',
  20.     'asm', 'int','for', 'new', 'try',
  21.     'auto', 'case', 'char', 'else', 'enum', 'goto',
  22.     'long', 'this', 'void',
  23.     'break', 'catch', 'cdecl', 'class', 'const', 'float',
  24.     'short', 'union', 'while',
  25.     'delete',  'double', 'except',    'extern',  'friend',  'inline',
  26.     'pascal', 'public',  'return', 'signed',  'sizeof',  'static',
  27.     'struct',  'switch',
  28.     'default', 'private', 'typedef', 'virtual',
  29.     'continue', 'operator',  'register',  'volatile',  'template',
  30.     'unsigned', 'protected',
  31.     'throw', 'namespace', 'using', 'explicit', 'mutable',
  32.     '_asm', '__asm', '_far16', '__far16', '_pascal', '_cdecl',
  33.     '__cdecl', '_export', '__pascal', '_stdcall', '_syscall',
  34.     '__stdcall', '__syscall', '_fastcall', '__fastcall', '__export',
  35.     'bool', 'true', 'false',
  36.     };
  37. }
  38.  
  39. mode C: PLAIN {      # C/C++ Mode
  40.     FileNameRx        = /\.\c{C|H|{CPP}|{HPP}|{CC}|{XS}}$/;
  41.     HilitOn        = 1;
  42.     Colorizer        = 'C';
  43.     AutoIndent        = 1;
  44.     IndentMode        = 'C';
  45.     TabSize        = 8; # think twice before changing this, historically
  46.                  # it's been known to cause a mess in sources ;-)
  47.     SpaceTabs        = 0;
  48.     MatchCase        = 1;
  49.     Trim        = 1;
  50.     MultiLineHilit    = 1;
  51.     AutoHilitParen    = 1;
  52.     
  53. #    RoutineRegexp    = /^\w[\w_:*&~]+[\w\\s_:*&~]@\(.*\){\s*\{}?\s*$/;
  54.     RoutineRegexp    = /^\w[\w_:*&~]+[\w\s_:*&~]@\([^;]*$/;
  55. #    RoutineRx    = ^\w[\w_:*&]+[\w\s_:*&]@\(
  56. #    RoutineRx    = ^{[a-zA-Z0-9_:*&]#\s*}+\(
  57.     
  58.     SaveFolds        = 2;      # save fold info at end of line
  59.     CommentStart    = ' /*';
  60.     CommentEnd        = '*/';
  61.  
  62.     # kabi prefered settings
  63.     IndentWithTabs = 1;
  64.     CursorThroughTabs = 0;
  65.     DeleteKillTab = 1;
  66.     DeleteKillBlock = 1;
  67.     BackSpKillTab = 1;
  68.     BackSpUnindents = 0;
  69.     Abbreviations = 1;
  70.     UndoMoves = 0;
  71. }
  72.