Fl_Window* new_view() {
EditorWindow* w = new EditorWindow(660, 400, title);
w->begin();
Fl_Menu_Bar* m = new Fl_Menu_Bar(0, 0, 660, 30);
m->copy(menuitems, w);
// start tile here
new Fl_Tile(0, 30, 660, 370, 0);
// add a new text editor on the left
Fl_Text_Buffer *filebuf = new Fl_Text_Buffer();
Fl_Text_Editor *file_pane = new Fl_Text_Editor(0, 30, 128, 370, 0);
file_pane->buffer(filebuf);
// the original editor goes on the right
w->editor = new Fl_Text_Editor(file_pane->w(), 30, 660, 370);
w->editor->textfont(FL_COURIER);
w->editor->textsize(TS);
//w->editor->wrap_mode(Fl_Text_Editor::WRAP_AT_BOUNDS, 250);
w->editor->buffer(textbuf);
w->editor->highlight_data(stylebuf, styletable,
sizeof(styletable) / sizeof(styletable[0]),
'A', style_unfinished_cb, 0);
w->end();
w->resizable(w->editor);
w->callback((Fl_Callback *)close_cb, w);
textbuf->add_modify_callback(style_update, w->editor);
textbuf->add_modify_callback(changed_cb, w);
textbuf->call_modify_callbacks();
num_windows++;
return w;
}