home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
fte037b.zip
/
fte-0.37
/
config
/
m_c.fte
< prev
next >
Wrap
Text File
|
1995-11-05
|
3KB
|
89 lines
#
# C mode
#
menu Main_C {
submenu '&File', File;
submenu '&Edit', Edit;
submenu '&Block', Block;
submenu '&Search', Search;
submenu 'Fol&d', Fold;
submenu '&Compile', Compile;
submenu '&Options', Options;
submenu '&Help', Help;
}
menu Local_C {
item '&Unmark Esc' { BlockMarkStream; BlockUnmark }
item 'Cu&t S+Del' { BlockCut }
item '&Copy C+Ins' { BlockCopy }
item '&Paste S+Ins' { BlockPasteStream }
item 'P&aste Column A+Ins' { BlockPasteColumn }
item;
item 'Delete &line C+Y' { KillLine }
item 'Delete to &EOL A+End' { KillToLineEnd }
item;
item '&Save F2' { FileSave }
item 'Cl&ose C+F10' { FileQuit }
item;
item '&Indent line Tab' { LineIndent }
item 'I&ndent block A+\\' { BlockReIndent }
}
mode C: PLAIN, '\\.\\c{C|H|{CPP}|{HPP}|{CC}|{XS}}$' { # C/C++ Mode
HilitOn = 1;
HilitMode = 'C';
AutoIndent = 1;
IndentMode = 'C';
TabSize = 8;
SpaceTabs = 1;
MatchCase = 1;
Trim = 1;
MultiLineHilit = 1;
# RoutineRegexp = '^\\w[\\w_:*&~]+[\\w\\s_:*&~]@\\(.*\\){\\s*\\{}?\\s*$';
RoutineRegexp = '^\\w[\\w_:*&~]+[\\w\\s_:*&~]@\\([^;]*$';
# RoutineRx ^\w[\w_:*&]+[\w\s_:*&]@\(
# RoutineRx ^{[a-zA-Z0-9_:*&]#\s*}+\(
MainMenu = 'Main_C'; # menu for menubar
LocalMenu = 'Local_C'; # local menu
SaveFolds = 2; # save fold info at end of line
CommentStart = ' /*';
CommentEnd = '*/';
key [Tab] { LineIndent; LineTrim }
key [G-Enter] { LineIndent; LineNew }
key [{] { SelfInsert; LineIndent }
key [}] { SelfInsert; LineIndent }
key [:] { SelfInsert; LineIndent }
key [#] { SelfInsert; LineIndent }
key [A+\\] { BlockReIndent }
key [C+O_\\] { ChangeCIndent }
key [C+O_{] { ChangeCBraceOfs }
key [C+O_}] { ChangeCBraceOfs }
key [F9] { Compile; CompileViewErrors }
key [F11] { CompilePrevError }
key [F12] { CompileNextError }
key [S+F9] { CompileViewErrors }
keyword '-' {
'do','if',
'asm', 'int','for', 'new', 'try',
'auto', 'case', 'char', 'else', 'enum', 'goto',
'long', 'this', 'void',
'break', 'catch', 'cdecl', 'class', 'const', 'float',
'short', 'union', 'while',
'delete', 'double', 'except', 'extern', 'friend', 'inline',
'pascal', 'public', 'return', 'signed', 'sizeof', 'static',
'struct', 'switch',
'default', 'private', 'typedef', 'virtual',
'continue', 'operator', 'register', 'volatile', 'template',
'unsigned', 'protected',
'_asm', '__asm', '_far16', '__far16', '_pascal', '_cdecl',
'__cdecl', '_export', '__pascal', '_stdcall', '_syscall',
'__stdcall', '__syscall', '_fastcall', '__fastcall', '__export'
};
}