#include <gtk/gtk.h>
+#include "window-manager.h"
+struct lexer;
struct syntax_editor
{
- GtkWidget *window; /* The top level window of the editor */
+ struct editor_window parent;
GtkTextBuffer *buffer; /* The buffer which contains the text */
- gchar *name; /* The name of this syntax buffer/editor */
+ struct lexer *lexer; /* Lexer to parse syntax */
};
+struct syntax_editor * new_syntax_editor (void);
+
+void new_syntax_window (GtkMenuItem *, gpointer);
+
+void open_syntax_window (GtkMenuItem *, gpointer);
+
+gboolean load_editor_from_file (struct syntax_editor *se,
+ const gchar *filename,
+ GError **err);
#endif