/* * inits markers staff */ void markers_init(void) { /* set markers in all currently opened documents */ guint i; foreach_document(i) markers_set_for_document(document_index(i)->editor->sci); }
/* * Occures on document opening. * Used to set breaks markers */ void on_document_open(GObject *obj, GeanyDocument *doc, gpointer user_data) { /*set markers*/ markers_set_for_document(doc->editor->sci); /*set dwell interval*/ scintilla_send_message(doc->editor->sci, SCI_SETMOUSEDWELLTIME, 500, 0); /* set tab size for calltips */ scintilla_send_message(doc->editor->sci, SCI_CALLTIPUSESTYLE, 20, (long)NULL); /* set breakpoint and frame markers */ set_markers_for_file(DOC_FILENAME(doc)); /* if debug is active - tell the debug module that a file was opened */ if (DBS_IDLE != debug_get_state()) debug_on_file_open(doc); }