;// The following macros are designed for the Autoindent+Unindent mode.
;// \n is new line.
;// \b is backspace.
;// @0 is the position where the cursor is positioned after the insertion
;// @1 is memorized in ^Q7 (or Alt7)
;// @2 is memorized in ^Q8 (or Alt8)
;// @3 is memorized in ^Q9 (or Alt9)
;// Don't put only @ at the end of the string :-).
;
;//  The Mode keyword indicates the mode of the editor when the macro is
;// triggered, each mode can be 0 or 1:
;// Overwrite, Autoindent, Use Tabs, Persistent blocks, Inteligent C indent
;// For example: Mode: 0,1,0,1,0
;// Indicates: No overwrite, autoindent, don't use real tabs, the blocks are
;// persistent and don't be smart when indenting.
;//   The Mode keyword can't be omitted.

Trigger: "bb"
Mode: 0,1,0,1,0
"\\b: {}"

Trigger: "f("
Mode: 0,1,0,1,0
 "for (@0; ; )\n"
 "   {@1\n"
    "}"

Trigger: "d("
Mode: 0,1,0,1,0
 "do\n"
 "  {@1\n"
   "}\n"
 "\bwhile (@0);"

Trigger: "w("
Mode: 0,1,0,1,0
 "while (@0)\n"
 "  {@1\n"
   "}"

Trigger: "i("
Mode: 0,1,0,1,0
 "if (@0)\n"
 "  {@1\n"
   "}\n"
 "\belse\n"
 "  {@2\n"
   "}"

Trigger: "s("
Mode: 0,1,0,1,0
 "switch (@0)\n"
 "  {\n"
   " case @1:\n"
    "     break;\n"
    "\bdefault:@2\n"
   "\b}"

Trigger: "c:"
Mode: 0,1,0,1,0
 "case @0:\n"
 "     break;"

Trigger: "un"
Mode: 0,1,0,1,0
 "unsigned @0"

Trigger: "pr"
Mode: 0,1,0,1,0
 "printf(\"@0\");"

Trigger: "#i"
Mode: 0,1,0,1,0
 "#include <@0.h>"

Trigger: "#d"
Mode: 0,1,0,1,0
 "#define @0"

Trigger: "si"
Mode: 0,1,0,1,0
 "sizeof(@0)"

Trigger: "re"
Mode: 0,1,0,1,0
 "return @0;"

Trigger: "/*"
Mode: 0,1,0,1,0
"/*****************************************************************************\n"
"\n"
"    Function: @0\n"
"\n"
    "Description:@1\n"
    "Parameters:@2\n"
    "Return:@3\n"
"\n"
"\b*****************************************************************************/\n"
"\n"

Trigger: "ma"
Mode: 0,1,0,1,0
"int main(int argc, char *argv[])\n"
"{\n"
" @0\n"
" return 0;\n"
"\b}"

