1 /* edit.h - editor public API
3 Copyright (C) 1996, 1997, 2009 Free Software Foundation, Inc.
5 Authors: 1996, 1997 Paul Sheer
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 * \brief Header: editor public API
28 * \author Andrew Borodin
35 #include "lib/global.h" /* PATH_SEP_STR */
36 #include "lib/fileloc.h"
40 typedef struct WEdit WEdit
;
42 extern int option_word_wrap_line_length
;
43 extern int option_typewriter_wrap
;
44 extern int option_auto_para_formatting
;
45 extern int option_fill_tabs_with_spaces
;
46 extern int option_return_does_auto_indent
;
47 extern int option_backspace_through_tabs
;
48 extern int option_fake_half_tabs
;
49 extern int option_persistent_selections
;
50 extern int option_cursor_beyond_eol
;
51 extern int option_line_state
;
52 extern int option_save_mode
;
53 extern int option_save_position
;
54 extern int option_syntax_highlighting
;
55 extern char *option_backup_ext
;
57 extern int edit_confirm_save
;
59 extern int visible_tabs
;
60 extern int visible_tws
;
62 extern int simple_statusbar
;
63 extern int option_check_nl_at_eof
;
64 extern int show_right_margin
;
67 void edit_stack_init (void);
68 void edit_stack_free (void);
70 int edit_file (const char *_file
, int line
);
72 const char *edit_get_file_name (const WEdit
*edit
);
73 int edit_get_curs_col (const WEdit
*edit
);
74 const char *edit_get_syntax_type (const WEdit
*edit
);
76 #endif /* MC_EDIT_H */