home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / wwed034b.zip / fte-0.34 / config / m_c.fte < prev    next >
Text File  |  1995-10-15  |  3KB  |  88 lines

  1. # C mode
  2. #
  3.  
  4. menu Main_C {
  5.     submenu '&File',    File;
  6.     submenu '&Edit',    Edit;
  7.     submenu '&Block',   Block;
  8.     submenu '&Search',  Search;
  9.     submenu 'Fol&d',    Fold;
  10.     submenu '&Compile', Compile;
  11.     submenu '&Options', Options;
  12.     submenu '&Help',    Help;
  13. }
  14.  
  15. menu Local_C {
  16.     item '&Unmark              Esc' { BlockMarkStream; BlockUnmark }
  17.     item 'Cu&t               S+Del' { BlockCut }
  18.     item '&Copy              C+Ins' { BlockCopy }
  19.     item '&Paste             S+Ins' { BlockPasteStream }
  20.     item 'P&aste Column      A+Ins' { BlockPasteColumn }
  21.     item;
  22.     item 'Delete &line       C+Y'   { KillLine }
  23.     item 'Delete to &EOL     A+End' { KillToLineEnd }
  24.     item;
  25.     item '&Save                F2'    { FileSave }
  26.     item 'Cl&ose             C+F10' { FileQuit }
  27.     item;
  28.     item '&Indent line         Tab' { LineIndent }
  29.     item 'I&ndent block      A+\\'  { BlockReIndent }
  30. }
  31.  
  32. mode C: PLAIN, '\\.\\c{C|H|{CPP}|{HPP}|{CC}|{XS}}$' {      # C/C++ Mode
  33.     HilitOn             = 1;
  34.     HilitMode           = 'C';
  35.     AutoIndent          = 1;
  36.     IndentMode          = 'C';
  37.     TabSize             = 8;
  38.     SpaceTabs           = 1;
  39.     MatchCase           = 1;
  40.     Trim                = 1;
  41.     MultiLineHilit      = 1;
  42.     
  43.     RoutineRegexp       = '^\\w[\\w_:*&~]+[\\w\\s_:*&~]@\\(.*\\){\\s*\\{}?\\s*$';
  44. #    RoutineRx      ^\w[\w_:*&]+[\w\s_:*&]@\(
  45. #    RoutineRx      ^{[a-zA-Z0-9_:*&]#\s*}+\(
  46.     
  47.     MainMenu            = 'Main_C';   # menu for menubar
  48.     LocalMenu           = 'Local_C';  # local menu
  49.  
  50.     SaveFolds           = 2;      # save fold info at end of line
  51.     CommentStart        = ' /*';
  52.     CommentEnd          = '*/';
  53.  
  54.     key       [Tab]     { LineIndent; LineTrim }
  55.     key       [Enter]   { LineIndent; LineNew }
  56.     key       [{]       { SelfInsert; LineIndent }
  57.     key       [}]       { SelfInsert; LineIndent }
  58.     key       [:]       { SelfInsert; LineIndent }
  59.     key       [#]       { SelfInsert; LineIndent }
  60.     key     [A-\\]      { BlockReIndent }
  61.     key     [C-O_\\]    { ChangeCIndent }
  62.     key     [C-O_{]     { ChangeCBraceOfs }
  63.     key     [C-O_}]     { ChangeCBraceOfs }
  64.     key       [F9]      { Compile; CompileViewErrors }
  65.     key       [F11]     { CompilePrevError }
  66.     key       [F12]     { CompileNextError }
  67.     key       [S-F9]   { CompileViewErrors }
  68.  
  69.     keyword '-' {
  70.         'do','if',
  71.     'asm', 'int','for', 'new', 'try',
  72.     'auto', 'case', 'char', 'else', 'enum', 'goto',
  73.     'long', 'this', 'void',
  74.     'break', 'catch', 'cdecl', 'class', 'const', 'float',
  75.     'short', 'union', 'while',
  76.     'delete',  'double', 'except',  'extern',  'friend',  'inline',
  77.     'pascal', 'public',  'return', 'signed',  'sizeof',  'static',
  78.     'struct',  'switch',
  79.     'default', 'private', 'typedef', 'virtual',
  80.     'continue', 'operator',  'register',  'volatile',  'template',
  81.     'unsigned', 'protected',
  82.     '_asm', '__asm', '_far16', '__far16', '_pascal', '_cdecl',
  83.     '__cdecl', '_export', '__pascal', '_stdcall', '_syscall',
  84.         '__stdcall', '__syscall', '_fastcall', '__fastcall', '__export'
  85.     };
  86. }
  87.