_Callback *) open_cb},
{"& Insert File.", FL_COMMAND + 'i', (Fl_Callback *) insert_cb, 0, FL_MENU_DIVIDER},
{"& Save File", FL_COMMAND + 's', (Fl_Callback *) save_cb},
{"Save File & As.", FL_COMMAND + FL_SHIFT + 's', (Fl_Callback *) saveas_cb, 0, FL_MENU_DIVIDER},
{"New & View", FL_ALT + 'v', (Fl_Callback *) view_cb, 0},
{"& Close View", FL_COMMAND + 'w', (Fl_Callback *) close_cb, 0, FL_MENU_DIVIDER},
{"E & xit", FL_COMMAND + 'q', (Fl_Callback *) quit_cb, 0},
{0},
{"& Edit", 0, 0, 0, FL_SUBMENU},
{"Cu & t", FL_COMMAND + 'x', (Fl_Callback *) cut_cb},
{"& Copy", FL_COMMAND + 'c', (Fl_Callback *) copy_cb},
{"& Paste", FL_COMMAND + 'v', (Fl_Callback *) paste_cb},
{"& Delete", 0, (Fl_Callback *) delete_cb},
{0},
{"& Search", 0, 0, 0, FL_SUBMENU},
{"& Find.", FL_COMMAND + 'f', (Fl_Callback *) find_cb},
{"F & ind Again", FL_COMMAND + 'g', find2_cb},
{"& Replace.", FL_COMMAND + 'r', replace_cb},
{"Re & place Again", FL_COMMAND + 't', replace2_cb},
{0},
{0}
}; _Window * new_view () {* w = new EditorWindow (660, 400, title);> begin (); _Menu_Bar * m = new Fl_Menu_Bar (0, 0, 660, 30) ;> copy (menuitems, w);> editor = new Fl_Text_Editor (0, 30, 660, 370);> editor-> textfont (FL_COURIER);> editor-> textsize (TS);> editor-> buffer (textbuf);> editor-> highlight_data (stylebuf, styletable, (styletable)/sizeof (styletable [0]),
'A', style_unfinished_cb, 0);> text (); _init ();> end ();> resizable (w-> editor);> callback ((Fl_Callback *) close_cb, w);> add_modify_callback (style_update, w-> editor);> add_modify_callback (changed_cb, w);> call_modify_callbacks (); _windows + +; w;
} main (int argc, char ** argv) {_TEST_VERSION; = new Fl_Text_Buffer; _init (); _Window * window = new_view ();> show (1, argv); (argc> ; 1) load_file (argv [1], - 1);
return Fl :: run ();
}