home *** CD-ROM | disk | FTP | other *** search
- // $Id: CMode.FPL 1.7 1995/07/21 10:31:18 jskov Exp $
- // $VER: CMode.FPL 1.0 (15.06.95) © Jesper Skov
-
- //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» CModePrefs() ««
- export void CModePrefs()
- {
- PromptInfo(-1,"CMode preferences",-1,-1,
- "C_comment_start_skip",
- "C_comment_start",
- "C_comment_end",
- "C_line_comment_start",
- "C_line_comment_body",
- "C_line_comment_end",
- "C_tab_size",
- "C_comment_column"
- );
- }
-
- //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» CModeInit() ««
- export void CModeInit()
- {
- // Set comment strings for C mode
- SetInfo(-1,"comment_start_skip",ReadInfo("C_comment_start_skip"));
- SetInfo(-1,"comment_start",ReadInfo("C_comment_start"));
- SetInfo(-1,"comment_end",ReadInfo("C_comment_end"));
- SetInfo(-1,"line_comment_start",ReadInfo("C_line_comment_start"));
- SetInfo(-1,"line_comment_body",ReadInfo("C_line_comment_body"));
- SetInfo(-1,"line_comment_end",ReadInfo("C_line_comment_end"));
- SetInfo(-1,"comment_column",ReadInfo("C_comment_column")); // set comment col
- SetInfo(-1,"comment_mode",1); // enable comment mode
-
- SetInfo(-1,"comment_begin","//"); // Set fold comment
-
- SetInfo(-1,"tab_size",ReadInfo("C_tab_size")); // Set tabulator size
-
- SetInfo(-1,"c_indent_mode",1); // enable c-indent-mode
-
- SetInfo(-1,"c_mode",1);// enable self
- }
-
- //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» CMode Settings ««
- ConstructInfo("C_comment_start_skip","","","WHGS","",0,0,"//\\*+ ");
- ConstructInfo("C_comment_start","","","WHGS","",0,0,"/* ");
- ConstructInfo("C_comment_end","","","WHGS","",0,0," */");
- ConstructInfo("C_line_comment_body","","","WHGS","",0,0,"»");
- ConstructInfo("C_line_comment_end","","","WHGS","",0,0,"««*/");
- ConstructInfo("C_line_comment_start","","","WHGS","",0,0,"/*");
-
- ConstructInfo("C_comment_column","","","WHGI","",0,999,45);
- ConstructInfo("C_tab_size","","","WHGI","",0,999,4);
-
-
- ConstructInfo("c_mode", "","", "LBH","", 0,0,0);
-
- AddMode(0, "c_mode", "c_mode_ext", "c_mode_exe");
-
- //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» CMode menu ««
- MenuAdd("s", "CMode...", "CModePrefs();", "", 6,6,-1); // Add to PackageSettings
- MenuBuild();
-
-